You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Arne Roomann-Kurrik (JIRA)" <ji...@apache.org> on 2008/02/09 20:06:07 UTC
[jira] Updated: (SHINDIG-57) gadgets.io.makeRequest does not pass a
content-type on POST requests
[ https://issues.apache.org/jira/browse/SHINDIG-57?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arne Roomann-Kurrik updated SHINDIG-57:
---------------------------------------
Attachment: add-content-type.patch.txt
I used this patch to be able to make a request to a third party server with the correct Content-Type header. There may be a better/more flexible solution, however.
> gadgets.io.makeRequest does not pass a content-type on POST requests
> --------------------------------------------------------------------
>
> Key: SHINDIG-57
> URL: https://issues.apache.org/jira/browse/SHINDIG-57
> Project: Shindig
> Issue Type: Improvement
> Components: Gadgets Server - Java
> Reporter: Arne Roomann-Kurrik
> Assignee: John Hjelmstad
> Attachments: add-content-type.patch.txt
>
>
> When using gadgets.io.makeRequest to POST data to a remote server, the Content-Type header is not set.
> PHP expects the Content-Type header to be set to "application/x-www-form-urlencoded" in order to populate its $_POST variable with the passed data.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.