#24028 [NEW]: Reading raw post message by php://input
From: xiongwei at aerafront dot com Date: Thu, 05 Jun 2003 03:24:32 +0000 Subject: #24028 [NEW]: Reading raw post message by php://input Groups: php.bugs Request: Send a blank email to php-bugs+get-41203@lists.php.net to get a copy of this message
From: xiongwei at aerafront dot com Operating system: win32 PHP version: 4.3.2 PHP Bug Type: Output Control Bug description: Reading raw post message by php://input I wrote a routine "postrawdata.php" for displaying HTTP raw request message. <?php $putdata = fopen( "php://input" , "rb" ); while(!feof( $putdata )) echo fread($putdata, 4096 ); fclose($putdata); ?> It works properly when using a socket program to post something to it. But submitting from a simple HTML below will make it dead, even http headers were not sent back, the behavior of brwoser is just waiting before timeout, I have tested it under IE 6.0 and Netscape 7.0 , any suggestion is appreciate. <body> <form name="form1" method="post" action="postrawdata.php"> <input type="text" name="name" > <input type="submit" name="Submit" value="Submit"> </form> </body> I think PHP does not send correct responding data to browser, or it does not disconnect the HTTP channel, that makes browsers to wait , whereas my socket client do disconnect when finished. Thanks, William Hong -- Edit bug report at http://bugs.php.net/?id=24028&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24028&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24028&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24028&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24028&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24028&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24028&r=support Expected behavior: http://bugs.php.net/fix.php?id=24028&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24028&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24028&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24028&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24028&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24028&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24028&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24028&r=gnused
Thread (47 messages)
- #24028 [Opn]: Reading raw post message by php://input
- #24028 [Opn->Fbk]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Fbk->Opn]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Opn->Fbk]: Reading raw post message by php://input
- #24028 [Fbk->Opn]: Reading raw post message by php://input
- #24028 [Opn->Csd]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Com]: Reading raw post message by php://input
- #24028 [Csd->Opn]: Reading raw post message by php://input
- #24028 [Opn->Csd]: Reading raw post message by php://input
| « previous | php.bugs (#41203) | next » |
|---|