Re: POST Query String
| From: | Philip Olson | Date: | Thu, 20 Jun 2002 00:09:15 +0000 |
| Subject: | Re: POST Query String | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103044@lists.php.net to get a copy of this message | ||
$HTTP_RAW_POST_DATA will exist if the PHP directive
always_populate_raw_post_data is on. This directive
works as of 4.2.0
Regards,
Philip Olson
On Thu, 20 Jun 2002, Samantha Savvakis wrote:
> Hi,
>
> I was wondering if it's possible to retrieve the entire Posted string as 1
> string before it gets into $HTTP_POST_VARS array?
>
> For example - In ASP, I can go Request.QueryString and it will return me the
> entire posted string , or I can index it to get a particular Name/Value pair
> out.
>
> The reason for this is - we have an application where we are posting XML
> data to web pages. There isn't a Name/Value pair as such. I am just posting
> pure XML data to a web page. When the receiving web page gets the data and I
> try to use $HTTP_POST_VARS, it tries to split the data into name value
> pairs, so I end up with
>
> Name: <?xml_version
> Value 1.0?><ELEMENT><...></ELEMENT>
>
> I would like it to just be 1 query string, rather than being parsed into the
> HTTP_POST_VARS array. The Content-Type is going to be text/xml , and even if
> it wasn't and we used HTTP_RAW_POST_VARS, this server variable still acts
> the same was as HTTP_POST_VARS and tries to put the receiving data into a
> name/value pair array.
>
> Is there a server variable at all that I can use? I have been looking around
> at all the available server variables but can't find anything that will give
> me the entire posted string.
>
> Thanks,
> Sam
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>