Re: POST Query String
| From: | Samantha Savvakis | Date: | Thu, 20 Jun 2002 03:10:27 +0000 |
| Subject: | Re: POST Query String | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103066@lists.php.net to get a copy of this message | ||
Hi,
Thanks for the reply.
As I understand, $_POST is the new way of writing $HTTP_POST_VARS since
version 4.1.x or greater. If this is correct, at the stage where I have
$_POST, it has already parsed the incoming query string into name/value
pairs and put into the $_POST array.
I am wanting the query string before it gets parsed into the name / value
pairs.
Thanks,
Sam
"Bruce Karstedt" <bkarstedt@prodigy.net> wrote in message
news:021201c21803$ffdce3b0$4773d73f@c3...
> Try "$_POST"
>
> Bruce Karstedt
> President
> Technology Consulting Associates, Ltd.
> Tel: 847-735-9488
> Fax: 847-735-9474
>
>
> -----Original Message-----
> From: Samantha Savvakis [mailto:samantha@cfs.net.au]
> Sent: Wednesday, June 19, 2002 8:28 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] POST Query String
>
>
> Hi Again,
>
> I just upgraded to version 4.2.0 and I have turned on
> "always_populate_raw_post_data" in the php.ini file.
>
> There is no "$HTTP_RAW_POST_DATA" variable after I post.
>
> I have got "Register_globals" turned "On".
>
> Sam
>
> "Philip Olson" <philip@cornado.com> wrote in message
> news:Pine.BSF.4.10.10206200003400.82649-100000@localhost...
> >
> > $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
> > >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>