Re: Bug #11753: Need way to load sent XML
| From: | Chris Vandomelen | Date: | Thu, 28 Jun 2001 09:26:09 +0000 |
| Subject: | Re: Bug #11753: Need way to load sent XML | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-58304@lists.php.net to get a copy of this message | ||
> From: chriso@4-ucomputing.com
> Operating system: Any
> PHP version: 4.0.5
> PHP Bug Type: Feature/Change Request
> Bug description: Need way to load sent XML
>
> There appears to be no way to load an XML string that was sent to a PHP
> page with a content-type: text/xml. What I think could be appropriate is
> a function xml_load_from_request(). Then, a client could post a request
> without having to go through the trouble of form-encoding it.
>
Try using $HTTP_RAW_POST_DATA. Stuff that was POSTed with a content type
that isn't recognized by PHP will be placed there.
Chris