Commit a3c952a3 authored by hujun's avatar hujun

http

parent 2c02709f
...@@ -239,6 +239,7 @@ function curl_get($url, array $params = array(), $timeout = 5) ...@@ -239,6 +239,7 @@ function curl_get($url, array $params = array(), $timeout = 5)
curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
$file_contents = curl_exec($ch); $file_contents = curl_exec($ch);
curl_close($ch); curl_close($ch);
return $file_contents; return $file_contents;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment