1
zhuangzhuang1988 2016-09-20 21:47:35 +08:00
用 requests.Session 试试
|
2
dishonest 2016-09-20 22:02:39 +08:00
传 cookie 。把上个请求的 cookie 取出,下个请求传入
|
3
omg21 OP @zhuangzhuang1988
已经用了 requests.Session ,我是这样登录的: payload = { "user":"yilong", "password":"6210" } session_requests = requests.session() login_url = "http://localhost/site/wnew/smpp/loginsave.asp" result = session_requests.post( login_url, data = payload, headers = dict(referer=login_url) ) |
4
omg21 OP url 地址是我本地调试的地址。
|
5
yuankui 2016-09-20 22:18:32 +08:00
a..s...p...........
|