Re: post vars not by form

From: Date: Fri, 09 Jan 2004 00:27:19 +0000
Subject: Re: post vars not by form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-174078@lists.php.net to get a copy of this message
Nabil wrote:
HI, Anyone can help , how to post variables from server side .. as from php page to other without HTML form and submistion ??? i want post method , to post my vars to another php on another server , then i have to read the body that will be printed by fopen ... so i can not use Location: example : i wwant to post to www.example.com?var=1&var2=2 and then read the the body from that link .. as 1 or 0 .. Regards
You can use PEAR's HTTP_Request class to post vars to a site (and a lot more). You could also use HTTP_Client if you need things like cookie management. http://pear.php.net/package/HTTP_Request http://pear.php.net/package/HTTP_Client -- paperCrane <Justin Patrin>

« previous php.general (#174078) next »