Re: POST from the script
| From: | Meir Kriheli | Date: | Tue, 14 Aug 2001 23:47:18 +0000 |
| Subject: | Re: POST from the script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62713@lists.php.net to get a copy of this message | ||
On Tuesday 14 August 2001 23:52, Marc Hanlon wrote:
> I was wondering if anyone knows how to make a script that is capable of
> doing it's own POST to a page without needing a form to be filled in.
> Basically it needs to perform the same sort of action as:
>
> www.anyplace.com/script.php?action=say&text=hello
>
> Unfortunately I cant change the script at the other end to take GET
> variables instead of POST values so I need a way for the PHP script to send
> POST values.
>
> Thanks,
>
> Marc.
Use the curl extension, or if you don't want to compile it (or can't) you can
always use Manuel Lemos's HTTP class at:
http://phpclasses.upperdesign.com/browse.html/package/3
--
Kriheli Meir