Posted by Sjoerd on 01/09/06 13:30
What you specify is a HTTP response. A HTTP request would start with:
POST /foo.html HTTP/1.1.
To do such a request, open a socket using fsockopen and fwrite the
request to it. Alternatively, you may use Curl
(http://www.php.net/curl) to do a request with specified POST data.
To make a response such as that you have written, you can just use
echo() and header() to get what you want.
Navigation:
[Reply to this message]
|