cancel
Showing results for 
Search instead for 
Did you mean: 

download document- authentication using code

yogeshkumar
Champ in-the-making
Champ in-the-making
Hi,

I want to download a document.

1st  URL  : http://10.60.9.246:8090/alfresco/d/a/workspace/SpacesStore/7f0133a0-51bf-4c64-bed2-6ec094d170a3/bin....(without using alfticket)

2nd URL  :  http://10.60.9.246:8090/alfresco/d/a/workspace/SpacesStore/7f0133a0-51bf-4c64-bed2-6ec094d170a3/bin....(used alfticket in url)

Both the above URLs are giving alfresco login page as response, once i login its downloading the document.

Scenario for me : my url should download the document directly, without giving me the login page as response and asking for authentication.

Please help me in achieving the same.

Thanks and Regards
Yogeshkumar.S
2 REPLIES 2

jpotts
World-Class Innovator
World-Class Innovator
I think those URLs require web client context in order to work, which is why Alfresco is prompting you with a login screen.

Instead, try a web script, which would be like:
http://localhost:8080/alfresco/s/cmis/s/workspaceSmiley FrustratedpacesStore/i/2c3204f0-22f7-43ee-9831-592127584c8f/c...

Jeff

rmacian
Champ in-the-making
Champ in-the-making
I think some other people uses a servlet for this purpose