mirror of
https://github.com/metowolf/Meting.git
synced 2026-09-03 07:27:07 +08:00
🍹 compatibility with php 5.3
This commit is contained in:
@@ -71,7 +71,7 @@ class Meting
|
||||
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
|
||||
curl_setopt($curl, CURLOPT_URL, $API['url']);
|
||||
curl_setopt($curl, CURLOPT_COOKIE, isset($this->_TEMP['cookie'])?$this->_TEMP['cookie']:$BASE['cookie']);
|
||||
curl_setopt($curl, CURLOPT_HTTPHEADER, [
|
||||
curl_setopt($curl, CURLOPT_HTTPHEADER, array(
|
||||
'Accept: */*',
|
||||
'Accept-Encoding: gzip, deflate',
|
||||
'Accept-Language: zh-CN,zh;q=0.8,gl;q=0.6,zh-TW;q=0.4',
|
||||
@@ -79,7 +79,7 @@ class Meting
|
||||
'Content-Type: application/x-www-form-urlencoded',
|
||||
'Referer: ' . $BASE['referer'],
|
||||
'User-Agent: ' . $BASE['useragent']
|
||||
]);
|
||||
));
|
||||
for ($i=0;$i<=$this->_RETRY;$i++) {
|
||||
$data = curl_exec($curl);
|
||||
$info = curl_getinfo($curl);
|
||||
|
||||
Reference in New Issue
Block a user