#24028 [Com]: Reading raw post message by php://input

From: Date: Fri, 16 Jul 2004 01:48:31 +0000
Subject: #24028 [Com]: Reading raw post message by php://input
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-62430@lists.php.net to get a copy of this message
 ID:               24028
 Comment by:       oiuay97sydh7asd at hotmail dot com
 Reported By:      xiongwei at aerafront dot com
 Status:           Closed
 Bug Type:         CGI related
 Operating System: win32 only
 PHP Version:      4.3.2
 New Comment:

<p><a href="http://www.winning-phentermine.com/">Phentermine</a>
Phentermine </p>
<p><a href="http://www.ineedpills.com/orthoTricyclen.htm">Ortho
Tri
Cyclen</a></p>
<p><a href="http://www.phentermine4me.com/">Phentermine</a>
Phentermine
</p>
<p><a href="http://www.ineedpills.com/didrex.html">Didrex</a>
</p>
<p><a href="http://www.carrotrx.com/">Phentermine</a>
Phentermine </p>
<p><a href="http://www.healthstorepharmacy.com/">Ambien</a>
Ambien
</p>
<p><a href="http://www.ineedpills.com/">Levitra</a>
Levitra </p>
<p><a href="http://www.ineedpills.com/fioricet.htm">Fioricet</a></p>
<p><a
href="http://www.ineedpills.com/phentermine.html">Phentermine</a></p>
<p><a href="http://www.letsbuypills.com/">Zyban</a>
Zyban </p>
<p><a href="http://www.pillspree.com/">Meridia</a>
Meridia </p>
<p><a href="http://www.lowest-prices-pharmacy-online.com/">Soma</a>
Soma </p>
<p><a href="http://www.healthpharmacyonline.com/">Tramadol</a>
Tramadol
</p>
<p><a href="http://www.123tramadol.com/">Tramadol</a>
Tramadol </p>
<p><a href="http://www.ineedpills.com/bontril.html">Bontril</a></p>
<p><a href="http://www.look4tramadol.com/">Tramadol</a>
Tramadol </p>
<p><a href="http://www.tramadol4less.com/">Tramadol</a>
Tramadol </p>
<p><a href="http://www.tramadol4me.com/">Tramadol</a>
Tramadol </p>
<p><a href="http://www.ineedpills.com/vioxx.htm">Vioxx</a></p>
<p><a href="http://www.gettramadol.com/">Tramadol</a>
Tramadol </p>
<p><a href="http://www.ineedpills.com">viagra</a>
viagra </p>
<p><a href="http://www.ineedpills.com/levitra.html">Levitra</a>
Levitra
</p>
<p><a href="http://www.ineedpills.com/cialis.html">Cialis</a>
Cialis
</p>
<p><a href="http://www.ineedpills.com/viagra.html">viagra</a>
viagra
</p>
<p><a href="http://www.healthpharmacyonline.com/tramadol.html">
Tramadol </a> 
  Tramadol </p>
<p><a
href="http://www.healthpharmacyonline.com/cialis_viagra_levitra.html">Cialis</a>

  Cialis </p>
<p><a href="http://www.healthpharmacyonline.com/ultram.html">Ultram</a>
Ultram 
</p>
<p><a
href="http://www.healthpharmacyonline.com/fioricet.html">Fioricet</a>
Fioricet 
</p>
<p><a href="http://www.healthpharmacyonline.com/vioxx.html">Vioxx</a>
Vioxx </p>
<p><a
href="http://www.healthpharmacyonline.com/ultracet.html">Ultracet</a>
Ultracet 
</p>
<p><a
href="http://www.healthpharmacyonline.com/celebrex.html">Celebrex</a>
Celebrex 
</p>
<p><a href="http://www.ineedpills.com/tramadol.htm">Tramadol</a></p>
<p><a
href="http://www.healthpharmacyonline.com/phentermine.html">Phentermine</a>

  Phentermine </p>
<p><a
href="http://www.healthpharmacyonline.com/carisoprodol.html">soma</a>
soma 
</p>
<p><a href="http://www.healthpharmacyonline.com/zyban.html">Zyban</a>
Zyban </p>
<p><a href="http://www.healthpharmacyonline.com/viagra.html">Viagra</a>
Viagra 
</p>
<p><a
href="http://www.healthpharmacyonline.com/levitra.html">Levitra</a>
Levitra




http://www.google.com/search?q=www.rxpainrelief&hl=en&lr=&ie=UTF-8&c2coff=1&start=120&sa=N

</p>


Previous Comments:
------------------------------------------------------------------------

[2003-06-24 12:58:38] sniper@php.net

Fixed -> closed. 

------------------------------------------------------------------------

[2003-06-04 22:24:32] xiongwei at aerafront 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


Thread (47 messages)

« previous php.bugs (#62430) next »