cancel
Showing results for 
Search instead for 
Did you mean: 

How set customize header to Alfresco.util.Ajax.jsonPost?

igorz
Champ on-the-rise
Champ on-the-rise

I'm trying to send POST-request using Alfresco.util.Ajax.jsonPost but I need set my own Header and I can't find how I can do it. I would be happy if someone explains me it's possible or not. And if not so how I can send POST-request differently?

Thanks,

Igor

1 ACCEPTED ANSWER

abbask01
Star Collaborator
Star Collaborator

we have Alfresco.util.Ajax.request to modify header, but it only modifies requestContentType and responseContentType. you can use YAHOO.util.connect but you'll have to add the authentication header/ticket manually in the request.

Regards,
Abbas

View answer in original post

2 REPLIES 2

abbask01
Star Collaborator
Star Collaborator

we have Alfresco.util.Ajax.request to modify header, but it only modifies requestContentType and responseContentType. you can use YAHOO.util.connect but you'll have to add the authentication header/ticket manually in the request.

Regards,
Abbas

igorz
Champ on-the-rise
Champ on-the-rise

Thank you very much for answer. I think it helps me.