#24028 [Opn->Csd]: Reading raw post message by php://input

From: Date: Thu, 30 Mar 2006 23:30:22 +0000
Subject: #24028 [Opn->Csd]: Reading raw post message by php://input
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95139@lists.php.net to get a copy of this message
ID: 24028 Updated by: bjori@php.net Reported By: florianophoneltd at yahoo dot com -Status: Open +Status: Closed Bug Type: FrontBase related Operating System: win32 only PHP Version: 4.3.2 Previous Comments: ------------------------------------------------------------------------ [2006-03-31 01:12:00] florianophoneltd at yahoo dot com NOTE: ALL PHONES ARE IN FACTORY SEALED BOXES, WITH CHARGERS, ACCESSORIES, MANUALS INCLUDED. COULD BE NEGOTIATED ACCORDING TO YOUR ORDER QUANTITY. FOR SALE!!!!!!!!!!! ::::::::::::::::::::::::::::::::::::::::::: MOTOROLA MPX 220 AT JUST $135usd MOTOROLA MPX 300 AT JUST $165usd MOTOROLA V3X AT JUST $180usd MOTOROLA RAZOR V3 AT JUST $140usd MOTOROLA V171 AT JUST $60USD Nextel i960..........$150.00USD NEXTEL i930 AT JUST $110usd NEXTEL i860 AT JUST $100usd SONY ERICSSON P910i AT JUST $150usd SONY ERICSSON K700i AT JUST $135usd SONY ERICSSON K750i AT JUST $140usd SONY ERICSSON P800 AT JUST $120usd SONY ERICSSON W800i AT JUST $1550usd SONY ERICSSON S700i AT JUST $140usd SONY ERICSSON S700i AT JUST $130usd NOKIA 1600 AT JUST $55usd NOKIA 2600 AT JUST $60USD NOKIA 6030 AT JUST $25USD NOKIA 6030 AT JUST $100usd NOKIA 9500 AT JUST $150usd NOKIA 9300 AT JUST $145usd NOKIA N92 AT JUST $220usd NOKIA N90 AT JUST $180usd NOKIA N91 AT JUST $210usd NOKIA 8800 AT JUST $165usd NOKIA 7200 AT JUST $130usd NOKIA 6260 AT JUST $130usd NOKIA 7210 AT JUST $135usd SAMSUNG D400 AT JUST $130usd SAMSUNG D600 AT JUST $190usd SAMSUNG D500 AT JUST $175usd SAMSUNG D415 AT JUST $145usd Sanyo MM-8300 .......$160.00USD Sanyo mm-9000........$200.00USD ppc-6700 ,...........$210.00USD Sidekick III............$170.00USD SIDEKICK II AT JUST $110usd TREO 600 AT JUST $135usd TREO 650 AT JUST $150usd Verizon/Motorola E815 EvDO for just $110 Verizon/LG VX4500 Voice Recognition for just for $100 Verizon's World Phone for just $120 Verizon/Motorola V265 for just $110 Verizon XV6600 $130 Verizon/Samsung SCH-a890 EVDO Handset $140 Verizon CDM8940 3G EV-DO $140 Verizon LG VX8000 EVDO $110 Verizon/LG VX8100 $110 Verizon/Samsung a950 $110 PLAY STATION 1 AT JUST $100USD PLAY STATION 2 AT JUST $140USD PLAY STATION 3 AT JUST $160USD MICROSOFT XBOX 360 AT JUST $180usd Apple 20 GB iPod Nano......$60.00USD Apple 4 GB iPod Mini Pink M9435LL/A ......$70.00USD Apple 40 GB iPod photo......$80.00USD Apple 4 GB iPod Mini Silver M9160LL/A ....$70.00USD Apple 60 GB iPod Photo M9830LL/A......$100.00USD Apple 60 GB iPod photo .....$55.00USD Apple 30 GB iPod Photo M9829LL/A.......$95.00USD Apple 512 MB iPod Shuffle MP3 Player......$50.00USD Apple 4 GB iPod Mini Blue M9436LL/A.......$70.00USD Apple 2 GB iPod Nano.....$90.00USD Apple 60 GB iPod Vidoe....$150.00USD Apple 30 GB iPod Vidoe......$110.00USD Apple 60 GB iPod Vidoe....$150.00USD :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: You can get in contact with us through our E-mail addresses: (kappa@technologist.com) (florianophoneltd@yahoo.com) ------------------------------------------------------------------------ [2003-06-24 12:58:38] sniper@php.net Fixed -> closed. ------------------------------------------------------------------------ [2003-06-04 22:24:32] florianophoneltd at yahoo dot com 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 this bug report at http://bugs.php.net/?id=24028&edit=1

« previous php.bugs (#95139) next »