await this.post('/userloginex.php?action=login&cid=0&notice=0')
.set('referer', 'http://acm.hdu.edu.cn/userloginex.php')
.send({
username: ***,
userpass: ***,
login: 'Sign In',
});
报错
https://www.luogu.com.cn/paste/2o51m2nk
本地post得到的数据:
HTTP/1.1 302 Found
Content-Type: text/html;charset=GB2312
Connection: keep-alive
Server: *************
Date: Wed, 28 Jun 2023 02:28:27 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Vary: Accept-Encoding
location:
Content-Length: 0
求改代码