Browse Source

Update JsonQueriable.php

tags/6.2.7
tianya 11 months ago
parent
commit
f0fd8e8ab2
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/system/libraries/jsonq/JsonQueriable.php

+ 2
- 0
src/system/libraries/jsonq/JsonQueriable.php View File

@@ -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');


Loading…
Cancel
Save