我有一个问题:我无法使用 Jsoup 登录 Betfair 页面似乎没问题,但没有得到登录页面的返回 :(
// You can try with this username and password for testing
// Username: <redacted>
// Password: <redacted>
// LoginUrl: lite.betfair.com/Login.do?s=000009z-redirectDefault
// This is my Code
Connection.Response res = Jsoup.connect("https://lite.betfair.com/SLoginsubmit.do?s=000009z-redirectDefault&secure=true")
.data("username", "<redacted>", "password", "<redacted>")
.method(Method.POST)
.execute();
Map<String, String> cookies = res.cookies();
Connection connection = Jsoup.connect("https://lite.betfair.com/Mybets.do?s=000209z");
for (Entry<String, String> cookie : cookies.entrySet()) {
connection.cookie(cookie.getKey(), cookie.getValue());
}
Document document = connection.get();
System.out.println(document);
谁能帮我?