By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,303 Members | 1,260 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,303 IT Pros & Developers. It's quick & easy.

trouble using $HTTP_RAW_POST_DATA

P: n/a
I need to have the contents of $HTTP_RAW_POST_DATA because of non-regular
uploads (from a browser to my home-made WebDAV-server). However, no matter
what I do, it is always NULL. I guess the following script should return
SOMETHING in $HTTP_RAW_POST DATA if "always_populate_raw_post_data 1" is
added to the php.ini file (and yes, I've restarted apache :-)... so, why is
it empty and how can I get the RAW post data?

test.php:

<form action="<?echo($PHP_SELF)?>" method="post">
<input type="text" value="you-suck">
<input type="submit">
</form>
<?php
echo("Raw post data: ".$HTTP_RAW_POST_DATA."<br>\n");
echo("Raw post data decoded: ".base64_decode($HTTP_RAW_POST_DATA)."<br>\n") ;
echo("<hr>");
phpinfo();
?>

Allman
Jul 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.