Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving Post data 1

Status
Not open for further replies.

wing2x

Programmer
Jun 24, 2002
39
0
0
PH
Suppose a user agent sends the following HTTP post request:

Code:
POST /listener.php HTTP/1.0
Content-Type: text/xml; charset=iso_8859-1
Accept: text/xml
Accept-Charset: utf-8, iso_8859-1
Content-Length: 190

<?xml version="1.0"?>
<XML_DATA>
  <Fields>
    <ID type="CHAR">abcde</ID>
    <NAME type="CHAR">Test Data</NAME>
    <EFFDATE type="DATE">01/01/2005</EFFDATE>
  </Fields>
</XML_DATA>

How do I read the embedded xml data in PHP? I tried looking at $_REQUEST and it's not there.

Thanks
 
I'm not sure, but you could try

$GLOBALS["HTTP_RAW_POST_DATA"]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top