作者 lyh

gx

@@ -64,8 +64,8 @@ if (!function_exists('http_post')) { @@ -64,8 +64,8 @@ if (!function_exists('http_post')) {
64 $ch = curl_init(); 64 $ch = curl_init();
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);  
68 -// curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); 67 + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  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);