|
@@ -159,7 +159,7 @@ class User extends Api
|
|
$ch = curl_init(); //初始化
|
|
$ch = curl_init(); //初始化
|
|
// curl_setopt($ch,CURLOPT_HTTPHEADER,$headerArray);
|
|
// curl_setopt($ch,CURLOPT_HTTPHEADER,$headerArray);
|
|
curl_setopt($ch, CURLOPT_URL, $url); //设置访问的URL
|
|
curl_setopt($ch, CURLOPT_URL, $url); //设置访问的URL
|
|
- curl_setopt($ch, CURLOPT_HEADER, $headerArray); //设置不需要头信息
|
|
|
|
|
|
+ curl_setopt($ch, CURLOPT_HEADER, false); //设置不需要头信息
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);//只获取页面内容,但不输出
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);//只获取页面内容,但不输出
|
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
|
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
|
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|