I have a problem: I can't login on page Betfair with Jsoup seems to be okay but do not get the return of logged page :(
// 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);
Who can help me?