Actually, it is relatively simple. Upload the code:
Copy the code The code is as follows:
$url = 'http://127.0.0.1/test.php';//The link pointed to by POST
$data = array(
'access_token'=>'thekeyvalue'
);
$json_data = postData($url, $data);
$array = json_decode($json_data,true); ; ;
function postData($url, $data)
{ $ch = curl_init();
$timeout = 300; topt($ch, CURLOPT_URL, $url ; ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$handles = curl_exec($ch);
curl_close($ch);
http://www.bkjia.com/PHPjc/326623.html
www.bkjia.com
true
http: //www.bkjia.com/PHPjc/326623.html
TechArticle
Actually, it’s relatively simple, just upload the code: Copy the code and the code is as follows: ?php $url = 'http:// 127.0.0.1/test.php';//The link pointed to by POST $data = array( 'access_token'='thekeyvalue' ); $jso...