cancel
Showing results for 
Search instead for 
Did you mean: 

URL for downloading

anshul
Champ in-the-making
Champ in-the-making
hi
I am trying to create a url to download a file from alfresco repository. This is what i am doing

//—————-Starting Session And getting Ticket——————–

AuthenticationUtils.startSession("admin", "admin");
string ticket=AuthenticationUtils.getTicket();

let
node uuid is e9c97a2d-86d5-41ef-8246-90ee31e23af8
ticket = TICKET_59e87771016fcd8e918d9df507125b14132fb79f

So URL is
http://127.0.0.1:8080/alfresco/d/d/workspace/SpacesStore/e9c97a2d-86d5-41ef-8246-90ee31e23af8/file.d...
But when i use this link in the browser it ask for authentication.
as i have given the ticket parameter than why it is asking for authentication. What i am doing wrong here. please help.

Thanks
Anshul
3 REPLIES 3

jcustovic
Champ in-the-making
Champ in-the-making
Try using ticket not alf_ticket.

anshul
Champ in-the-making
Champ in-the-making
Tried it , it didn't worked, any other idea

Thanks
Anshul

jcustovic
Champ in-the-making
Champ in-the-making
I just saw that your ticket is missing TICKET_ in front of id. Here is an example url that works for me
http://localhost:8080/alfresco/d/d/workspace/SpacesStore/4051264d-72fe-4031-b059-e02157130202/Prvi%2...