|
@@ -23,7 +23,6 @@ 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, 60);
|
|
|
curl_setopt($ci, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
|
|
|
|
|
|
$headers = (array) $extheaders;
|
|
@@ -90,7 +89,6 @@ 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, 60);
|
|
|
curl_setopt($ci, CURLOPT_POST, TRUE);
|
|
|
|
|
|
if (!empty($headers)) {
|
|
@@ -121,7 +119,6 @@ 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, 60);
|
|
|
curl_setopt($ci, CURLOPT_HEADER, false);
|
|
|
$headers = (array) $extheaders;
|
|
|
switch ($method)
|