[thelist] Retrieving Post data

Vlad Alexander (XStandard) vlad.alexander at xstandard.com
Tue Jan 18 07:06:57 CST 2005


Hi Joe,

$xml = @file_get_contents("php://input");

Regards,
-Vlad
http://xstandard.com
Standards-based XHTML WYSIWYG editor


----- Original Message ----- 
From: "Joe Ngo" <chilijoe at gmail.com>
To: "Evolt List" <thelist at lists.evolt.org>
Sent: Tuesday, January 18, 2005 3:22 AM
Subject: [thelist] Retrieving Post data


> 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.
> 
> -- 
> Take back the web!
> http://www.spreadfirefox.com
> -- 
> 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip Harvester 
> and archives of thelist go to: http://lists.evolt.org 
> Workers of the Web, evolt ! 
>



More information about the thelist mailing list