In PHP, usage (example) of http_post_data and http_put_data?
Hello, how to use http_post_data and http_put_data in PHP (a small example), thank you…
—– -Solution——————–
Manual manual. .
http://www.php.net/manual/en/function.http-post-data.php
This is roughly the usage. There are many parameters that can be configured
$url = “http://www.renren.com/PLogin.do”;
$data = arry(’email’=>’abcd @yahoo.com.cn’,’password’=>’****’);
$respOnse= http_post_data($url,$data);
if($respOnse===false) {
echo “failure notice!”;
}
else echo $response;
——Solution——————–
Prompt that the function http_post_data() cannot be found
You have not loaded the corresponding extension library
It seems that the function http_post_data() is a php_http extension
I will give you a reference, I hope it will be helpful to you Useful
http://liero.me/?p=729