|
@@ -23,6 +23,7 @@ function http_request($url, $params = array(), $method = 'GET', $multi = false,
|
|
|
curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, false);
|
|
|
curl_setopt($ci, CURLOPT_HEADER, false);
|
|
|
curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, 60);
|
|
|
+ curl_setopt($ci, CURLOPT_TIMEOUT, 900);
|
|
|
curl_setopt($ci, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
|
|
|
curl_setopt($ci, CURLOPT_FOLLOWLOCATION, true);
|
|
|
|
|
@@ -100,6 +101,7 @@ function http_post_data($url, $body, $headers = array(),&$net_errno = 0)
|
|
|
curl_setopt($ci, CURLINFO_HEADER_OUT, TRUE);
|
|
|
curl_setopt($ci, CURLOPT_URL, $url);
|
|
|
curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, 60);
|
|
|
+ curl_setopt($ci, CURLOPT_TIMEOUT, 900);
|
|
|
curl_setopt($ci, CURLOPT_POST, TRUE);
|
|
|
curl_setopt($ci, CURLOPT_FOLLOWLOCATION, true);
|
|
|
|
|
@@ -140,6 +142,7 @@ function https_request($url, $params = array(), $method = 'GET', $multi = false,
|
|
|
curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, false);
|
|
|
curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, 2);
|
|
|
curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, 60);
|
|
|
+ curl_setopt($ci, CURLOPT_TIMEOUT, 900);
|
|
|
curl_setopt($ci, CURLOPT_HEADER, false);
|
|
|
curl_setopt($ci, CURLOPT_FOLLOWLOCATION, true);
|
|
|
|