使用httpclient抓取登录数据,始终返回用户名与密码不匹配。 #2963
Unanswered
wolf-hunter404
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
想抓点数据,不想老去登录操作。
用java语言,使用apahce httpclient和okhttp client,按照浏览器里登录请求方式,参数、header、cookie这些都设置了。
/authenticate接口就两个参数,username和password,form表单形式,POST提交,一直都是失败。
看接口是先POST提交,然后返回了301重定向,但是接口还是/authenticate,逻辑没太搞懂为什么要这么做,代码里也开启了重定向支持。
整了两天也没整好,哪位大神有遇见过类似的情况?
Beta Was this translation helpful? Give feedback.
All reactions