if(substr($url,0,5)=='https'){$ch = curl_init($url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);if($post){curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch, CURLOPT_POSTFIELDS, $post);}if($cookie){curl_setopt($ch, CURLOPT_COOKIE, $cookie);}curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);return curl_exec($ch);} |
新闻热点
疑难解答