You are here: Re: Responding To HTTP Post « PHP Programming Language « IT news, forums, messages
Re: Responding To HTTP Post

Posted by Gordon Burditt on 11/28/05 00:53

>I was not able to find the answer to my question in the CURL
>documentation. I understand that it may not be possible to do this
>using php.
>
>My script would get a request via POST from a client. The client would
>wait for response. In order for me to respond, I need to get a handle
>to the initial connection.

If your page is running under PHP, you already have a connection.
Output something (say, with echo or header() or something).

>This may not be possible. I think that this
>type of situations are usually handled via a coordinating daemon.

If you are making an outgoing connection to something (with, say,
fopen on a remote URL) and want to copy the response IT sends to
the request you got, look at fpassthru().

Otherwise, I don't understand your problem.

Gordon L. Burditt

 

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

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