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