1024programmer PHP In PHP, usage (example) of http_post_data and http_put_data? Solutions

In PHP, usage (example) of http_post_data and http_put_data? Solutions

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

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/in-php-usage-example-of-http_post_data-and-http_put_data-solutions-2/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索