From b3290d2484e1b7c5e14681a9df6758f985ee9c66 Mon Sep 17 00:00:00 2001 From: han8gui Date: Thu, 9 Feb 2017 10:51:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0ua?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QueryList.php | 1 + 1 file changed, 1 insertion(+) diff --git a/QueryList.php b/QueryList.php index a71147e..53d3176 100644 --- a/QueryList.php +++ b/QueryList.php @@ -263,6 +263,7 @@ class QueryList curl_setopt($ch, CURLOPT_AUTOREFERER, true); curl_setopt($ch, CURLOPT_REFERER, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36'); $result = curl_exec($ch); curl_close($ch); }elseif(version_compare(PHP_VERSION, '5.0.0')>=0){