[PHP] Re: Simulating a POST From: Richard Lynch (richard <email protected>)
Date: 12/29/00

> Does Zend have any examples of simulating a POST with fsockopen()? I do
> not have a problem simulating a GET using a socket, but the data is not
> being passed with the POST. Here is the stream I am passing:
>
> POST http://209.204.172.138:80/hec/php/purchaseinfo.php HTTP/1.0
> Host: 209.204.172.138:80
> Content-type: application/x-www-form-urlencoded
> test=123456

I just did a search on dogpile.com and found a couple samples...

http://www.tryc.on.ca/archives/php3/1999_7/0533.html

http://www.devshed.com/Talk/Forums/Forum5/HTML/002553.html
(This guy is having a problem that may or may not match yours...)

http://www.phpbuilder.com/forum/archives/2/2000/09/2/107636

Also, Rasmus has a canonical PostToHost function out there on the net
somewhere, and Manuel Lemos has a class that does it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>