curl方法优化

This commit is contained in:
Devil 2021-07-26 22:11:02 +08:00
parent ab6b41705f
commit c2f1037ebd

View File

@ -1959,6 +1959,7 @@ function CurlGet($url, $timeout = 10)
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_URL, $url);
$result = curl_exec($ch);