[PHP] POST from the script

2001-08-14 Thread Marc Hanlon

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=saytext=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.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] POST from the script

2001-08-14 Thread Meir Kriheli

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=saytext=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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]