You are here: Re: How to return data using POST « PHP Programming Language « IT news, forums, messages
Re: How to return data using POST

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).

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация