Joe Ngo wrote: >Suppose a user agent sends the following HTTP post request: > ><!-- start (not part of HTTP message) >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> >end --> > >How do I read the embedded xml data in PHP? I tried looking at >$_REQUEST and it's not there. > > > A quick google [0] points to the following variable but I haven't done any tests. $HTTP_RAW_POST_DATA Simon [0] http://groups.google.co.uk/groups?q=PHP+XML+post+data&hl=en&lr=&client=firefox-a&selm=uce817de5knkec%40corp.supernews.com&rnum=4