|
@@ -18,8 +18,8 @@ function http_request($url, $params = array(), $method = 'GET', $multi = false,
|
|
$method = strtoupper($method);
|
|
$method = strtoupper($method);
|
|
$ci = curl_init();
|
|
$ci = curl_init();
|
|
curl_setopt($ci, CURLOPT_USERAGENT, 'PHP-SDK OAuth2.0');
|
|
curl_setopt($ci, CURLOPT_USERAGENT, 'PHP-SDK OAuth2.0');
|
|
- curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, 3);
|
|
|
|
- curl_setopt($ci, CURLOPT_TIMEOUT, 3);
|
|
|
|
|
|
+// curl_setopt($ci, CURLOPT_CONNECTTIMEOUT, 3);
|
|
|
|
+// curl_setopt($ci, CURLOPT_TIMEOUT, 3);
|
|
curl_setopt($ci, CURLOPT_RETURNTRANSFER, true);
|
|
curl_setopt($ci, CURLOPT_RETURNTRANSFER, true);
|
|
curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, false);
|
|
curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, false);
|
|
curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, false);
|
|
curl_setopt($ci, CURLOPT_SSL_VERIFYHOST, false);
|