Re: How can I open URL using HTTP POST instead of HTTP GET?
| From: | Hugh Bothwell | Date: | Sun, 10 Feb 2002 16:30:57 +0000 |
| Subject: | Re: How can I open URL using HTTP POST instead of HTTP GET? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-84171@lists.php.net to get a copy of this message | ||
"Zlutarch G." <zlutarch@hotmail.com> wrote in message
news:F170pLdnoHW8Tf1Imxo00000c23@hotmail.com...
> Hi everyone,
>
> PHP fopen function opens URL using the HTTP GET method. But what if one
> could only open the web page using the HTTP POST method? In this case,
fopen
> won't work. Is there a PHP function that is similar to fopen, but uses
HTTP
> POST method to open URL instead? If not, then how do I work around this
> problem?
Umm... you might have to open a socket and read/write directly.
To do this, you'd have to look up the appropriate RFCs and write
the headers manually.
Anyone got a better idea?