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

cancel
Showing results for 
Search instead for 
Did you mean: 
igorz
Active Member

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

Jump to solution

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 Solution

Accepted Solutions
abbask01
Senior Member

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

Jump to solution

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 solution in original post

2 Replies
abbask01
Senior Member

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

Jump to solution

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
Active Member

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

Jump to solution

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