RE: [PHP] How do I send a POST request?
| From: | Daniel Kushner | Date: | Tue, 12 Feb 2002 20:28:16 +0000 |
| Subject: | RE: [PHP] How do I send a POST request? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-84442@lists.php.net to get a copy of this message | ||
http://phpclasses.upperdesign.com/browse.html/package/375/
> -----Original Message-----
> From: Erik Price [mailto:pricee@hhbrown.com]
> Sent: Tuesday, February 12, 2002 3:21 PM
> To: LaserJetter
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] How do I send a POST request?
>
>
>
> On Tuesday, February 12, 2002, at 02:14 PM, LaserJetter wrote:
>
> > 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.
>
> In theory, you can just send all of the headers followed by an extra
> newline and then the connection followed by the POST variables. In
> theory.
>
>
> Erik
>
>
>
> ----
>
> Erik Price
> Web Developer Temp
> Media Lab, H.H. Brown
> pricee@hhbrown.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>