functiongetCurl($url,$post=0,$cookie=0,$header=0,$nobaody=0){$ch=curl_init();curl_setopt($ch,CURLOPT_URL,$url);curl_setopt($ch,CURLOPT_TIMEOUT,15);curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);$klsf[]='Accept:*/*';$klsf[]='Accept-Language:zh-cn';//$klsf[] = 'Content-Type:application/json';$klsf[]='User-Agent:Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_1 like Mac OS X) AppleWebKit/604.4.7 (KHTML, like Gecko) Mobile/15C153 MicroMessenger/6.6.1 NetType/WIFI Language/zh_CN';$klsf[]='Referer:'.$url;curl_setopt($ch,CURLOPT_HTTPHEADER,$klsf);if($post){curl_setopt($ch,CURLOPT_POST,1);curl_setopt($ch,CURLOPT_POSTFIELDS,$post);}if($header){curl_setopt($ch,CURLOPT_HEADER,true);}if($cookie){curl_setopt($ch,CURLOPT_COOKIE,$cookie);}if($nobaody){curl_setopt($ch,CURLOPT_NOBODY,1);}curl_setopt($ch,CURLOPT_TIMEOUT,60);curl_setopt($ch,CURLOPT_ENCODING,'gzip');curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);$ret=curl_exec($ch);curl_close($ch);return$ret;}