Re: [PHP] HTTP_RAW_POST_DATA

2004-05-13 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): > --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > > By default php streams the STDIN to a file so your just dealing > > with buffer sized ~2K-4K. enabling this option makes php put the > > contents into memory, thus leaving open the possiblity of someo

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-13 Thread raditha dissanayake
Chris Shiflett wrote: --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: PHP must read the whole post stream to create $_POST and $HTTP_POST_VARS arrays, and to save file uploads into a temporary files. This happens before the script is executed. Well, there are other scenarios: POST /path/to

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-13 Thread Chris Shiflett
--- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > PHP must read the whole post stream to create $_POST and > $HTTP_POST_VARS arrays, and to save file uploads into a temporary > files. This happens before the script is executed. Well, there are other scenarios: POST /path/to/script.php HTTP/1.1 Hos

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-13 Thread Chris Shiflett
--- Curt Zirzow <[EMAIL PROTECTED]> wrote: > By default php streams the STDIN to a file so your just dealing > with buffer sized ~2K-4K. enabling this option makes php put the > contents into memory, thus leaving open the possiblity of someone > using up all your memory and bringing the machine to

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-13 Thread Marek Kilimajer
Michal Migurski wrote: Isn't this potentially a DoS attack vector anyway? I don't need a server to accept or read my obscenely long POST requests to clog the pipes with them. Would the proper way to handle this risk be to disallow POST at the webserver level, or does turning always_populate_raw_pos

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread Michal Migurski
> > Isn't this potentially a DoS attack vector anyway? I don't need a server > > to accept or read my obscenely long POST requests to clog the pipes with > > them. Would the proper way to handle this risk be to disallow POST at the > > webserver level, or does turning always_populate_raw_post_data

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread Curt Zirzow
* Thus wrote Michal Migurski ([EMAIL PROTECTED]): > > > Anyone have any clue why this is the case? Is there a performance > > > reason that raw post data must be explicitly enabled, or is it more of > > > a protective measure for overly permissive beginner scripts? > > > > If it was always enabled,

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread raditha dissanayake
Michal Migurski wrote: Anyone have any clue why this is the case? Is there a performance reason that raw post data must be explicitly enabled, or is it more of a protective measure for overly permissive beginner scripts? If it was always enabled, it sure would make a DoS attack easy. I'd ju

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread raditha dissanayake
Chris Shiflett wrote: --- raditha dissanayake <[EMAIL PROTECTED]> wrote: NOw I am very curious, the raw_post_data doesn't always get populated even with that setting. If i have not been barking up the wrong tree all these years that variable only gets populated if the content type is not url-en

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread Chris Shiflett
--- raditha dissanayake <[EMAIL PROTECTED]> wrote: > NOw I am very curious, the raw_post_data doesn't always get > populated even with that setting. If i have not been barking up > the wrong tree all these years that variable only gets populated > if the content type is not url-encoded or multipart

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread Michal Migurski
> > Anyone have any clue why this is the case? Is there a performance > > reason that raw post data must be explicitly enabled, or is it more of > > a protective measure for overly permissive beginner scripts? > > If it was always enabled, it sure would make a DoS attack easy. I'd just > send lots

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread Chris Shiflett
--- Michal Migurski <[EMAIL PROTECTED]> wrote: > Anyone have any clue why this is the case? Is there a performance > reason that raw post data must be explicitly enabled, or is it more > of a protective measure for overly permissive beginner scripts? If it was always enabled, it sure would make a

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread raditha dissanayake
Chris Boget wrote: same configuration. Where would I look to discover why one server would have data held in $HTTP_RAW_POST_DATA whereas the other server would not? Check the value of "always_populate_raw_post_data" in php.ini on both servers. That was it. Thank you so very much!!

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread Michal Migurski
> > > Check the value of "always_populate_raw_post_data" in php.ini on > > both servers. > > > > Thats such a funny name. > > Not to mention misleading, since it doesn't always populate > $HTTP_RAW_POST_DATA when enabled. Always should mean always. Anyone have any clue why this is the case? Is the

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-11 Thread Travis Low
Chris Shiflett wrote: --- Curt Zirzow <[EMAIL PROTECTED]> wrote: Check the value of "always_populate_raw_post_data" in php.ini on both servers. Thats such a funny name. Not to mention misleading, since it doesn't always populate $HTTP_RAW_POST_DATA when enabled. Always should mean always. No, no,

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-11 Thread Chris Shiflett
--- Curt Zirzow <[EMAIL PROTECTED]> wrote: > > Check the value of "always_populate_raw_post_data" in php.ini on > both servers. > > Thats such a funny name. Not to mention misleading, since it doesn't always populate $HTTP_RAW_POST_DATA when enabled. Always should mean always. Chris = Chris

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-11 Thread John W. Holmes
From: "Curt Zirzow" <[EMAIL PROTECTED]> > * Thus wrote John W. Holmes ([EMAIL PROTECTED]): > > > > Check the value of "always_populate_raw_post_data" in php.ini on both > > servers. > > Thats such a funny name. So is "Zirzow" ---John Holmes... -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-11 Thread Chris Boget
> > same configuration. Where would I look to discover why one > > server would have data held in $HTTP_RAW_POST_DATA > > whereas the other server would not? > Check the value of "always_populate_raw_post_data" in php.ini > on both servers. That was it. Thank you so very much!! Chris -- PHP

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-11 Thread Curt Zirzow
* Thus wrote John W. Holmes ([EMAIL PROTECTED]): > > Check the value of "always_populate_raw_post_data" in php.ini on both > servers. Thats such a funny name. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-11 Thread John W. Holmes
From: "Chris Boget" <[EMAIL PROTECTED]> > On our development server, I have a script that accesses the > value of $HTTP_RAW_POST_DATA (upon form submission) > and there is data there. However, on our production server, > the same code shows no value held in $HTTP_RAW_POST_DATA. > Both servers are

[PHP] HTTP_RAW_POST_DATA

2004-05-11 Thread Chris Boget
I was looking through the documentation and I could not figure out why the following is occuring: On our development server, I have a script that accesses the value of $HTTP_RAW_POST_DATA (upon form submission) and there is data there. However, on our production server, the same code shows no v

Re: [PHP] HTTP_RAW_POST_DATA

2003-02-20 Thread Chris Shiflett
--- Sam Minnee <[EMAIL PROTECTED]> wrote: > I'm having a couple of problems getting PHP to accept my post data. > Specifically, the data I am sending is not with POST, put with PUT and > PROPFIND. I'm implementing WebDAV within PHP. > > How to I get PHP to set $HTTP_RAW_POST_DATA for all methods

[PHP] HTTP_RAW_POST_DATA

2003-02-19 Thread Sam Minnee
Hi, I'm having a couple of problems getting PHP to accept my post data. Specifically, the data I am sending is not with POST, put with PUT and PROPFIND. I'm implementing WebDAV within PHP. How to I get PHP to set $HTTP_RAW_POST_DATA for all methods where content is sent, not just post? Thanks,

[PHP] HTTP_RAW_POST_DATA / Content-type

2001-10-22 Thread Ryan
Hello, I'm running into a problem accessing $HTTP_RAW_POST_DATA in my scripts. I am interfacing with an external system that is doing a HTTP POST to my php script (I'm running 4.0.6). The variable $HTTP_RAW_POST_DATA is always blank even though the external system is sending me data. The probl

Re: [PHP] HTTP_RAW_POST_DATA

2001-05-07 Thread Zak Greant
Actually, I am afraid that they won't. To achieve this, break the if/else block up so that both code blocks are called. --zak - Original Message - From: "Dmitri Zasypkin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 07, 200

Re: [PHP] HTTP_RAW_POST_DATA

2001-05-07 Thread Dmitri Zasypkin
Zak, Thank you for the answer. Are you sure $HTTP_POST_VARS will be still set after that modification in case of a valid x-www-form-urlencoded POST request? I'm afraid they won't.. Such side effect is very undesirable for me. Anyway thanks. Zak Greant wrote: > Dmitri Zasypkin wrote: > > Hi,

Re: [PHP] HTTP_RAW_POST_DATA

2001-05-07 Thread Zak Greant
Dmitri Zasypkin wrote: > Hi, > > Could anyone help me with altering PHP sources? Or tell me please where > may I ask this question? > > The problem is when PHP handles a POST request of a known Content-type > (e.g. x-www-form-urlencoded), it leaves $HTTP_RAW_POST_DATA blank. I > need to alter the

[PHP] HTTP_RAW_POST_DATA

2001-05-07 Thread Dmitri Zasypkin
Hi, Could anyone help me with altering PHP sources? Or tell me please where may I ask this question? The problem is when PHP handles a POST request of a known Content-type (e.g. x-www-form-urlencoded), it leaves $HTTP_RAW_POST_DATA blank. I need to alter the sources so that PHP would always put