我想从本地Web服务器获取数据,但为什么结果没有这样的图片和拟合日志条目// localhost / xampp脚本,
<?php
//$curl -v -X POST --data "client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&redirect_uri=YOUR_REDIRECT_URI&grant_type=authorization_code&code=AUTHORIZATION_CODE"
//"https://dms.myopenbee.com/ws/oauth2/token"
$headers = array(
"access_token"=>"fHDITDJru1fghJIu3Zg",
"token_type"=>"Bearer",
"Location"=> "http://10.11.12.156:8000/ws/v2/users",
);
$url = 'http://10.11.12.156:8000';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$result = curl_exec($ch);
curl_close($ch);
$result_arr = json_decode($result, true);
print_r($result_arr);
echo $result;
?>