| #205 | $ch = curl_init($url); |
| #206 | curl_setopt($ch, CURLOPT_FAILONERROR, true); |
| #207 | if($gzip) { |
| #208 | //解释gzip加密压缩 |
| #209 | curl_setopt($ch, CURLOPT_HTTPHEADER,array('Accept-Encoding: gzip, deflate, br')); |
| #210 | curl_setopt($ch, CURLOPT_ENCODING, 'gzip,deflate'); |
| #211 | } |
| #212 | // 关闭https验证 |
| #213 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); |
| #214 | curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); |