php发送请求,解决curl返回空白问题 自己对php不熟悉,参考了网上的的,自己做个记录吧。
function postUrl($url, $post_data){
$post_data = json_encode($post_data);
$headerArray =array("Content-type:application/json", "Accept:applicaticurl获取https开头的url的内容 平时我们用curl一般都获取http页面的内容,代码如下
$theurl= "http://www.xx.com";
$_data = array(
'client_id' => $CLIENT_ID,
'client_secret' => $CLIENT_SECRET,
);
$ch = curl_init(); 关注道招网公众帐号

道招开发者二群
