Re: Simulating a POST
| From: | Richard Lynch | Date: | Fri, 29 Dec 2000 23:15:17 +0000 |
| Subject: | Re: Simulating a POST | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32247@lists.php.net to get a copy of this message | ||
> 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.