0
我试图找到我的问题的答案。如何使用Android上的Jsoup库登录网站
但是,我无法登录我的Android应用程序下面的网站。
http://www.ddanzi.com/index.php?act=dispMemberLoginForm
这有什么错呢? 有没有人帮我找到错误的代码片段?
下面是我的查询码。
Connection.Response res = Jsoup.connect("http://www.ddanzi.com/index.php?mid=free&act=dispMemberLoginForm")
.followRedirects(true)
.data("user_id", "myid")
.data("password", "mypassword")
.method(Connection.Method.POST)
.execute();
Document document = Jsoup.connect("http://www.ddanzi.com/index.php?act=dispMemberInfo")
.followRedirects(true)
.cookies(res.cookies())
.method(Connection.Method.POST)
.post();
我花了3个小时左右,找出解决办法........ :-(
哦〜!非常感谢....你让我节省时间。^^ – allsoft