#31417 [Opn]: $HTTP_RAW_POST_DATA but $_POST not populated
| From: | j-spam at starline dot ee | Date: | Wed, 05 Jan 2005 14:58:38 +0000 |
| Subject: | #31417 [Opn]: $HTTP_RAW_POST_DATA but $_POST not populated | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-71484@lists.php.net to get a copy of this message | ||
ID: 31417
User updated by: j-spam at starline dot ee
Reported By: j-spam at starline dot ee
Status: Open
Bug Type: Variables related
Operating System: Linux
PHP Version: 5.0.3
New Comment:
Typo: "$HTTP_RAW_POST_DATA" not "$_HTTP_RAW_POST_DATA" on Reproduce
code, line 2.
Previous Comments:
------------------------------------------------------------------------
[2005-01-05 15:55:35] j-spam at starline dot ee
Description:
------------
$_POST is not populated, however $HTTP_RAW_POST_DATA is.
lighttpd 1.3.5 using cgi (not fcgi)
CGI-PHP5 5.0.3
Firefox 1.0
Reproduce code:
---------------
$_POST: <?php print_r($_POST); ?><br>
$HTTP_RAW_POST_DATA: <?php print_r($_HTTP_RAW_POST_DATA); ?><br><br>
<form action="<?=$_SERVER["PHP_SELF"] ?>" method="post">
<textarea name="duh"><?=$_POST["duh"];?></textarea>
<input type="submit" />
</form>
Actual result:
--------------
$_POST: Array ( )
$HTTP_RAW_POST_DATA: bla=asdf&duh=eeca%0D%0Aasdf%0D%0Aasdf
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31417&edit=1