I need to do an HTTP post from a PHP script; I want to set username=.
What is the correct way to do this in PHP?
--
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 administr
Greetings,
first of all you'll need to have all of your variables in one line:
like this for example
$vars="var1=".urlencode($var1)."&var2=".urlencode($var2);
then you need to post the following
$header="POST /your_script.php HTTP/1.0\r\nContent-length:
".strlen($vars)\r\n\r\n$vars\r\n\r\n";
I need to do an HTTP post from a PHP script; I want to set username=.
What is the correct way to do this in PHP?
--
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 administrat
3 matches
Mail list logo