作者 lyh

gx

@@ -65,7 +65,7 @@ if (!function_exists('http_post')) { @@ -65,7 +65,7 @@ if (!function_exists('http_post')) {
65 curl_setopt($ch, CURLOPT_URL, $url); 65 curl_setopt($ch, CURLOPT_URL, $url);
66 curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); 66 curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
67 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); 67 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
68 - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); 68 + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
69 curl_setopt($ch, CURLOPT_HTTPHEADER, $header); 69 curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
70 curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; MSIE 5.01; Windows NT 5.0)'); 70 curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; MSIE 5.01; Windows NT 5.0)');
71 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); 71 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);