RE: [PHP] How do I send a POST request?
| From: | Johnson, Kirk | Date: | Tue, 12 Feb 2002 19:18:25 +0000 |
| Subject: | RE: [PHP] How do I send a POST request? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-84424@lists.php.net to get a copy of this message | ||
See PostToHost in the archives:
http://marc.theaimsgroup.com/?l=php-general&m=92353052714384&w=2
Kirk
> -----Original Message-----
> From: LaserJetter [mailto:newsaddress@saracenvsu.org.uk]
> Sent: Tuesday, February 12, 2002 12:15 PM
> To: php-general@lists.php.net
> Subject: [PHP] How do I send a POST request?
>
>
> I'm currently sending an HTTP request for
> clientlogin.php?date=2002-02-12&type=nl and doing this by
> opening a socket
> connection with fsockopen, fwriting "GET
> /clientlogin.php?date=2002-02-12&type=nl......" to the socket
> and then using
> fgets to read the response.
>
> How do I send a POST request using a similar method?
> I'm doing this in PHP-GTK so I cant write an HTML form and
> submit it with
> Javascript.