正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -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); |
-
请 注册 或 登录 后发表评论