update
This commit is contained in:
@@ -32,16 +32,18 @@ class CrawlerService
|
|||||||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 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);
|
||||||
|
curl_setopt($ch, CURLOPT_ENCODING, ''); // 自动处理gzip编码
|
||||||
curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
||||||
'Accept: application/json, text/javascript, */*; q=0.01',
|
'Accept: text/plain, */*',
|
||||||
'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8',
|
'Accept-Language: zh-CN,zh;q=0.9,zh-TW;q=0.8,zh-HK;q=0.7,en-US;q=0.6,en;q=0.5',
|
||||||
'Accept-Encoding: gzip, deflate',
|
'Accept-Encoding: gzip, deflate',
|
||||||
'Cache-Control: no-cache',
|
'Cache-Control: no-cache',
|
||||||
'Connection: keep-alive',
|
'Connection: keep-alive',
|
||||||
'Content-Type: application/x-www-form-urlencoded',
|
'Content-Type: application/x-www-form-urlencoded; charset=UTF-8',
|
||||||
'Cookie: ' . $cookieString,
|
'Cookie: ' . $cookieString,
|
||||||
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36',
|
'Origin: http://gzrsks.oumakspt.com:62',
|
||||||
'Referer: http://gzrsks.oumakspt.com:62/tyzpwb/',
|
'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36',
|
||||||
|
'Referer: http://gzrsks.oumakspt.com:62/tyzpwb/stuchooseexam/selectPosition.htm',
|
||||||
'X-Requested-With: XMLHttpRequest',
|
'X-Requested-With: XMLHttpRequest',
|
||||||
]);
|
]);
|
||||||
curl_setopt($ch, CURLOPT_POST, true);
|
curl_setopt($ch, CURLOPT_POST, true);
|
||||||
@@ -90,16 +92,18 @@ class CrawlerService
|
|||||||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 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);
|
||||||
|
curl_setopt($ch, CURLOPT_ENCODING, ''); // 自动处理gzip编码
|
||||||
curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
||||||
'Accept: application/json, text/javascript, */*; q=0.01',
|
'Accept: text/plain, */*',
|
||||||
'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8',
|
'Accept-Language: zh-CN,zh;q=0.9,zh-TW;q=0.8,zh-HK;q=0.7,en-US;q=0.6,en;q=0.5',
|
||||||
'Accept-Encoding: gzip, deflate',
|
'Accept-Encoding: gzip, deflate',
|
||||||
'Cache-Control: no-cache',
|
'Cache-Control: no-cache',
|
||||||
'Connection: keep-alive',
|
'Connection: keep-alive',
|
||||||
'Content-Type: application/x-www-form-urlencoded',
|
'Content-Type: application/x-www-form-urlencoded; charset=UTF-8',
|
||||||
'Cookie: ' . $cookieString,
|
'Cookie: ' . $cookieString,
|
||||||
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36',
|
'Origin: http://gzrsks.oumakspt.com:62',
|
||||||
'Referer: http://gzrsks.oumakspt.com:62/tyzpwb/',
|
'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36',
|
||||||
|
'Referer: http://gzrsks.oumakspt.com:62/tyzpwb/stuchooseexam/selectPosition.htm',
|
||||||
'X-Requested-With: XMLHttpRequest',
|
'X-Requested-With: XMLHttpRequest',
|
||||||
]);
|
]);
|
||||||
curl_setopt($ch, CURLOPT_POST, true);
|
curl_setopt($ch, CURLOPT_POST, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user