|
|
@@ -273,6 +273,8 @@ trait JsonQueriable |
|
|
|
curl_setopt($curl_handle, CURLOPT_URL, $url); |
|
|
|
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2); |
|
|
|
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); |
|
|
|
curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, false); |
|
|
|
curl_setopt($curl_handle, CURLOPT_SSL_VERIFYHOST, false); |
|
|
|
curl_setopt($curl_handle, CURLOPT_TIMEOUT, 5); |
|
|
|
curl_setopt($curl_handle, CURLOPT_MAXREDIRS, 10 ); |
|
|
|
curl_setopt($curl_handle, CURLOPT_USERAGENT, 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36'); |
|
|
|