Side navigation
#12118 closed bug (invalid)
Opened July 20, 2012 11:05PM UTC
Closed July 24, 2012 08:33PM UTC
AJAX : send XML data by POST
Reported by: | nacedo57@hotmail.com | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
the POST variable as not index when we send a XML dada.
a solution :
javascript :
$.ajax({ type: "POST", contentType: "text/xml" , url: "test.php", data: $xml.context, processData: false, success: function(msg){ alert( msg ); } });
PHP (or other):
$xmlcontent = $GLOBALS["HTTP_RAW_POST_DATA"]; echo $xmlcontent;
we need tu use HTTP_RAW_POST_DATA !
is'n possible to put an index to the variable POST ?
Attachments (0)
Change History (1)
Changed July 24, 2012 08:33PM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
It sounds like you should ask for help in the forum. If you determine there is a bug in jQuery, please provide a full test case, preferably on jsFiddle.net. Thanks!