[PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Balazs Halasy
I need to have the contents of $HTTP_RAW_POST_DATA because of non-regular uploads (from browser to my home-made WevDAV server implementation (done in PHP)). However, no matter what I do, it is always NULL. I guess the following script should return SOMETHING in $HTTP_RAW_POST DATA if

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread John W. Holmes
Balazs Halasy wrote: I need to have the contents of $HTTP_RAW_POST_DATA because of non-regular uploads (from browser to my home-made WevDAV server implementation (done in PHP)). However, no matter what I do, it is always NULL. I guess the following script should return SOMETHING in $HTTP_RAW_POST

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Baroiller Pierre-Emmanuel
Hi, $HTTP_RAW_POST_DATA is an array... with echo you'll only get array.. To get something into $HTTP_RAW_POST_DATA, you need to submit your form before... Your script will only display something if you post the form before. Regards, P.E. Baroiller John W. Holmes [EMAIL PROTECTED] a écrit dans

RE: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Donald Tyler
for the page in the browser to make it readable. -Original Message- From: Balazs Halasy [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 7:28 AM To: [EMAIL PROTECTED] Subject: [PHP] Trouble getting $HTTP_RAW_POST_DATA I need to have the contents of $HTTP_RAW_POST_DATA because of non-regular

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread skate
Also, print_r() does not include any HTML formatting, so you will need to look at the source for the page in the browser to make it readable. or your could use pre.../pre -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Curt Zirzow
* Thus wrote Donald Tyler ([EMAIL PROTECTED]): Also, print_r() does not include any HTML formatting, so you will need to look at the source for the page in the browser to make it readable. This is a problem I run into all the time, I am curious of how many people have run into this. I've

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread skate
Since print_r is usually used for debugging, it would be nice that php does this for you. Any comments on this before i throw the idea to the php-dev list? if it's just used for debugging, can't you just use the pre tags around it? i mean, it's no big deal, and you don't really need it

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Chris Shiflett
--- Curt Zirzow [EMAIL PROTECTED] wrote: Since print_r is usually used for debugging, it would be nice that php does this for you. Any comments on this before i throw the idea to the php-dev list? As of 4.3.0, you can store the output of print_r() in a variable, so that allows developers to do

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Curt Zirzow
* Thus wrote skate ([EMAIL PROTECTED]): Since print_r is usually used for debugging, it would be nice that php does this for you. Any comments on this before i throw the idea to the php-dev list? if it's just used for debugging, can't you just use the pre tags around it? i mean, it's

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): --- Curt Zirzow [EMAIL PROTECTED] wrote: Since print_r is usually used for debugging, it would be nice that php does this for you. Any comments on this before i throw the idea to the php-dev list? As of 4.3.0, you can store the output of

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Philip Olson
Your script should work fine, and to fix claims made in this thread: a) $HTTP_RAW_POST_DATA is NOT an array, it's a string. b) It does not live in $_SERVER, or rely on register_globals. Your code is wrong because you don't provide names for your fields, so there is no POST data. Assign

Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Mike Migurski
$HTTP_RAW_POST_DATA is an array... with echo you'll only get array.. No, it's a string - just the raw bytes that were posted. Is register globals ON or OFF? Either way, maybe try $_SERVER['HTTP_RAW_POST_DATA']... Also, ensure that always_populate_raw_post_data is on, too - see: