|
@@ -100,6 +100,7 @@ if (!function_exists('http_get')) { |
|
@@ -100,6 +100,7 @@ if (!function_exists('http_get')) { |
|
100
|
curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
|
100
|
curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
|
|
101
|
curl_setopt($ch1, CURLOPT_ENCODING, '');
|
101
|
curl_setopt($ch1, CURLOPT_ENCODING, '');
|
|
102
|
curl_setopt($ch1, CURLOPT_MAXREDIRS, 10);
|
102
|
curl_setopt($ch1, CURLOPT_MAXREDIRS, 10);
|
|
|
|
103
|
+ curl_setopt($ch1, CURLOPT_TIMEOUT, 120);
|
|
103
|
curl_setopt($ch1, CURLOPT_HTTPHEADER, $header);
|
104
|
curl_setopt($ch1, CURLOPT_HTTPHEADER, $header);
|
|
104
|
curl_setopt($ch1, CURLOPT_CONNECTTIMEOUT, $timeout);
|
105
|
curl_setopt($ch1, CURLOPT_CONNECTTIMEOUT, $timeout);
|
|
105
|
curl_setopt($ch1, CURLOPT_FOLLOWLOCATION, true);
|
106
|
curl_setopt($ch1, CURLOPT_FOLLOWLOCATION, true);
|