Bug #16485 Updated: can't read stdin flowdata neither using php://stdin no $HTTP_RAW_POST_DATA
| From: | sander@php.net | Date: | Mon, 08 Apr 2002 10:15:32 +0000 |
| Subject: | Bug #16485 Updated: can't read stdin flowdata neither using php://stdin no $HTTP_RAW_POST_DATA | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-4328@lists.php.net to get a copy of this message | ||
ID: 16485
Updated by: sander@php.net
Reported By: yas@liniya.ru
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: FreeBSD4.4
PHP Version: 4.1.2
New Comment:
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php
Previous Comments:
------------------------------------------------------------------------
[2002-04-08 04:01:26] yas@liniya.ru
Hi All !
The problem :
1. On client-side i have next script :
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
var Response = new ActiveXObject("MSXML2.DOMDocument");
strxml = "SOME XML..."
xmlhttp.open("POST","http://host/script.php",false);
xmlhttp.setRequestHeader("Content-type","text/xml");
xmlhttp.send(strxml);
alert(xmlhttp.ResponseText);
2. When script.php starts the CONTENT_LENGTH is not null,
its value is NNN bytes.
4. Constructions like :
$fp = fopen("php://stdin","r");
$data=fread($fp,$HTTP_SERVER_VARS{'CONTENT_LENGTH'});
fclose($fp);
echo $data;
or
echo $HTTP_RAW_POST_DATA;
don't work. They return null :-(
4. In PHP.INI always_populate_raw_post_data = On
Anybody knows what's happened ?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16485&edit=1