RE: [PHP] Simulating POST
| From: | Jesse Cablek | Date: | Sat, 14 Sep 2002 00:42:37 +0000 |
| Subject: | RE: [PHP] Simulating POST | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116339@lists.php.net to get a copy of this message | ||
Alex Shi <mailto:chpshi@eol.ca> scribbled;
>
> I would believe what he wants is to embed post into an URL.
> And I guess this might be what he implied by "simulate"..
>
> I myself don't know very much about the trick but happen to get an
> example from:
>
> $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n";
> $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
> $header .= 'Content-Length: ' . strlen($req) . "\r\n\r\n";
>
> Hope this can help.
>
> Alex
>
>
> "Jesse Cablek" <php@list.everchanging.org> wrote in message
> news:006101c25b84$6978a480$4550500a@cablek.net...
>> David Duong <mailto:davidduong1@hotmail.com>
>> scribbled;
>>>
>>> How can I simulate a POST (from HTML forms) request?
>>
>> <form method="post" action="script.php">
>> <input ... />
>> </form>
>>
>> -jesse
That's what I had thought, but the "(from HTML forms)" sounded like he
wanted it as HTML forms.. :/
In any case, he got both scenarios ;)
-jesse