php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16485 can't read stdin flowdata neither using php://stdin no $HTTP_RAW_POST_DATA
Submitted: 2002-04-08 04:01 UTC Modified: 2002-04-08 06:15 UTC
From: yas at liniya dot ru Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.1.2 OS: FreeBSD4.4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: yas at liniya dot ru
New email:
PHP Version: OS:

 

 [2002-04-08 04:01 UTC] yas at liniya dot 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 ?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-08 06:15 UTC] sander@php.net
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


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed May 27 16:00:01 2026 UTC