[PHP-DEV] HTTP_RAW_POST_DATA in phpinfo() (request)

2003-01-02 Thread Kristopher Yates
Hello everyone, I was wondering if you all would be interested in the following: When "always_populate_raw_post_data" is set to "on" in php.ini, one would be able to see the value of HTTP_RAW_POST_DATA in phpinfo() output. I found this would have been a nice little time saver for me while work

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-10 Thread Philip Olson
On Mon, 11 Nov 2002, Hartmut Holzgraefe wrote: > Philip Olson wrote: > > When setting this on I assume it will always populate no matter > > what enctype is used. This isn't the case. In the little tests > > according to Brad, adding enctype="multipart/form-data" to a > > post form will cause $H

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-10 Thread Kjartan Mannes
Monday, November 11, 2002, 12:01:26 AM, Hartmut Holzgraefe wrote: > unless i did something stupid while testing this is also the case > at least for 4.2.x (due to the way multipart forms are handled now > to preserve memory on file uploads) ... Yes, but it doesn't populate HTTP_RAW_POST_DATA when

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-10 Thread Hartmut Holzgraefe
Philip Olson wrote: When setting this on I assume it will always populate no matter what enctype is used. This isn't the case. In the little tests according to Brad, adding enctype="multipart/form-data" to a post form will cause $HTTP_RAW_POST_DATA to not exist. This is even with aways_populate

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-10 Thread Philip Olson
On Sun, 10 Nov 2002, Rasmus Lerdorf wrote: > Hrm.. Ok, actually Hartmut changed this recently. See: > > >http://cvs.php.net/diff.php/php4/main/php_content_types.c?login=2&r1=1.21&r2=1.22&ty=u > > It works when you turn on always_populate_raw_post_data, right? When setting this on I assume it

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-10 Thread Brad Bulger
On Sun, 10 Nov 2002, Rasmus Lerdorf wrote: > Hrm.. Ok, actually Hartmut changed this recently. See: > > >http://cvs.php.net/diff.php/php4/main/php_content_types.c?login=2&r1=1.21&r2=1.22&ty=u > > It works when you turn on always_populate_raw_post_data, right? kind of. it doesn't quite follow

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-10 Thread Kjartan Mannes
Sunday, November 10, 2002, 3:30:16 PM, Rasmus Lerdorf wrote: > Hrm.. Ok, actually Hartmut changed this recently. See: > >http://cvs.php.net/diff.php/php4/main/php_content_types.c?login=2&r1=1.21&r2=1.22&ty=u > It works when you turn on always_populate_raw_post_data, right? Yes, but then that

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-10 Thread Rasmus Lerdorf
Hrm.. Ok, actually Hartmut changed this recently. See: http://cvs.php.net/diff.php/php4/main/php_content_types.c?login=2&r1=1.21&r2=1.22&ty=u It works when you turn on always_populate_raw_post_data, right? -Rasmus On Sun, 10 Nov 2002, Kjartan Mannes wrote: > Using telnet and raw http > > REQU

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-10 Thread Kjartan Mannes
Sunday, November 10, 2002, 1:26:43 PM, Melvyn Sopacua wrote: > Read up on the 'enctype' attribute of forms and/or use > enctype="multipart/formdata" and upload a file, with an extension, that > isn't known by your browser (.foobar would be a good guess). Using telnet and raw http REQUEST POST

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-10 Thread Melvyn Sopacua
At 12:55 10-11-2002, Kjartan Mannes wrote: [...] > + Contains the RAW POST data. For this variable to exist, > + there must be a POST request and either the mime type of > + the POST data must be unrecoginized [...] Send this post data: [...] I get this

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-10 Thread Kjartan Mannes
Sunday, November 10, 2002, 3:45:14 AM, Philip Olson wrote: > This will be documented as soon as we figure out where to document it. > Many months ago the predefined variables section of the manual was > redone and the vars are now separated autoglobals. > + Contains the RAW POST data. Fo

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-09 Thread Philip Olson
This will be documented as soon as we figure out where to document it. Many months ago the predefined variables section of the manual was redone and the vars are now separated autoglobals. Should this be documented under $GLOBALS or should a new section be created? I'm thinking a new section f

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-09 Thread Rasmus Lerdorf
Yes, it has to be a POST request for there to be post data and $HTTP_RAW_POST_DATA is populated if the mime type of the data is unrecoginized or if always_populate_raw_post_data is on. On Sat, 9 Nov 2002, Kjartan Mannes wrote: > Wednesday, August 28, 2002, 3:15:13 PM, [EMAIL PROTECTED] wrote: > >

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-09 Thread Kjartan Mannes
Wednesday, August 28, 2002, 3:15:13 PM, [EMAIL PROTECTED] wrote: > is $HTTP_RAW_POST_DATA only filled if REQUEST_TYPE is set to POST? > even if 'always_populate_raw_post_data = On'? does anyone have a short > info on this? rasmus maybe? I to would like know when $HTTP_RAW_POST_DATA is supposed to

[PHP-DEV] $HTTP_RAW_POST_DATA

2002-08-28 Thread abdul-kareem.abo-namous
hi everyone is $HTTP_RAW_POST_DATA only filled if REQUEST_TYPE is set to POST? even if 'always_populate_raw_post_data = On'? does anyone have a short info on this? rasmus maybe? thx alot! Abdul-Kareem Abo-Namous -- PHP Development Mailing List To unsubscribe, visit: ht