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
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
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
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
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
* 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
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
--- 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
* 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
* 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
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
$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:
12 matches
Mail list logo