Re: HTTP / XML Project help required
| From: | Manuel Lemos | Date: | Tue, 21 Nov 2006 04:57:57 +0000 |
| Subject: | Re: HTTP / XML Project help required | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244939@lists.php.net to get a copy of this message | ||
Hello,
on 11/20/2006 11:52 PM Richard Luckhurst said the following:
> I have to develop a listener that sits waiting and when it receives a request it
> has to send a message using a HTTP POST to a URL. I know the URL and the port
> (not 80 as that would be too easy). The message starts with a custom HTTP header
> and I know the 12 items that must be in the header. The message then contains a
> block which is a request to the server we are posting to. The whole process then
> receives a response which looks very much like the message being POSTed to it.
>
> I don't have any trouble bulding the body of the message as it is really just a
> string building exercise. What I have no experience with is the HTTP POST side
> of things. I would appreciate any thoughts on ways of achieving what I have to
> do.
You may want to try this HTTP client class. I simplifies building and
sending HTTP POST request or of any other kind and does not require any
special PHP extensions.
http://www.phpclasses.org/httpclient
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/