title: Jsoup can't Login on Page
body: <p>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 :(</p>
  
  <pre><code>// You can try with this username and password for testing
  // Username: &lt;redacted&gt;
  // Password: &lt;redacted&gt;
  // 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&amp;secure=true")
                      .data("username", "&lt;redacted&gt;", "password", "&lt;redacted&gt;")
                      .method(Method.POST)
                      .execute();
              Map&lt;String, String&gt; cookies = res.cookies();
  
  
              Connection connection = Jsoup.connect("https://lite.betfair.com/Mybets.do?s=000209z");
              for (Entry&lt;String, String&gt; cookie : cookies.entrySet()) {
                  connection.cookie(cookie.getKey(), cookie.getValue());
              }
  
  
              Document document = connection.get();
              System.out.println(document);
  </code></pre>
  
  <p>Who can help me?</p>