RE: [PHP] Re: How can I open URL using HTTP POST instead of HTTP GET?
| From: | James Cox | Date: | Sun, 10 Feb 2002 16:32:28 +0000 |
| Subject: | RE: [PHP] 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-84172@lists.php.net to get a copy of this message | ||
http://php.net/curl
> -----Original Message-----
> From: Hugh Bothwell [mailto:hugh_bothwell@hotmail.com]
> Sent: Sunday, February 10, 2002 4:31 PM
> To: php-general@lists.php.net
> Subject: [PHP] Re: How can I open URL using HTTP POST instead of HTTP
> GET?
>
>
>
> "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?
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>