#33359 [Fbk->Bgs]: file_get_contents('php://input') does not return POST data
| From: | tony2001@php.net | Date: | Thu, 16 Jun 2005 10:42:03 +0000 |
| Subject: | #33359 [Fbk->Bgs]: file_get_contents('php://input') does not return POST data | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80419@lists.php.net to get a copy of this message | ||
ID: 33359
Updated by: tony2001@php.net
Reported By: lacak at users dot sourceforge dot net
-Status: Feedback
+Status: Bogus
Bug Type: HTTP related
Operating System: Win98
PHP Version: 5CVS-2005-06-16
New Comment:
This is how it works.
See this post for detailed description:
http://marc.theaimsgroup.com/?l=php-dev&m=103717951119500&w=2
Previous Comments:
------------------------------------------------------------------------
[2005-06-16 12:40:37] sniper@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2005-06-16 11:08:51] lacak at users dot sourceforge dot net
No solution.
$_POST is OK (contains form elements), but
file_get_contents('php://input') returns empty string.
Laco.
------------------------------------------------------------------------
[2005-06-16 10:50:27] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-06-16 08:53:33] lacak at users dot sourceforge dot net
Description:
------------
file_get_contents('php://input') (and also file, fopen+fread) does not
return POST data, when submited form with
enctype="multipart/form-data".
When submited the same form without enctype specified (so default
"application/x-www-form-urlencoded" is used) all works OK.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33359&edit=1