| Posted by Daniel Tryba on 05/12/05 18:14 
Gary Quiring <gquiring@msn.com> wrote:> I have a vendor sending me a text file using POST.  I have a PHP program
 > receiving the data that works.  I need to in the same stream return an answer
 > via POST.  How do I send that POST in the same stream?
 
 You can't, this is simply not how http works.
 
 The client opens a connection, sends headers (in your case a POST) and
 data (the file). When it's finished sending you can send back anything
 you like using normal output functions like echo/print/whatever (in your
 case the header and content from the http hash). And then close the
 connection (or accept another request if keep-alive is enabled).
 [Back to original message] |