In PHP, how does http_post_data and http_put_data use (instance )? Solution
Source: Internet
Author: User
In PHP, how does http_post_data and http_put_data use (instance )? Hello, In PHP, how to use http_post_data and http_put_data (for example, here)? thank you ......, Manual .. In PHP, how does the http://www.php.net/manual/en/function.http-post-da use http_post_data and http_put_data (instance )?
Hello, In PHP, how to use http_post_data and http_put_data (for example, here)? thank you ......
------ Solution --------------------
Manual ..
Http://www.php.net/manual/en/function.http-post-data.php
This is generally the case. 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 --------------------
The error message "http_post_data ()" is not found ()
You have not loaded the corresponding extension Library
It seems that the http_post_data () function is a php_http extension.
I hope it will be useful to you.
Http://liero.me /? P = 729
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service