Bug Tracker

Opened 7 years ago

Closed 7 years ago

#12118 closed bug (invalid)

AJAX : send XML data by POST

Reported by: nacedo57@… 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 ?

Change History (1)

comment:1 Changed 7 years ago by dmethvin

Resolution: invalid
Status: newclosed

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!

Note: See TracTickets for help on using tickets.