title: How to log in to an HTTPS website with Jsoup?
body: <p>I've been interested in webcrawlers recently and decided to try Jsoup. I'm not exactly sure how to log into a website with it though.  I saw another SO post about it but couldn't piece together how to do it.</p>
  
  <p>I've been trying to crawl around with a site www.tickld.com  and the login site is "<a href="https://www.tickld.com/signin" rel="nofollow">https://www.tickld.com/signin</a>". </p>
  
  <p>I'm not sure if I'm using Jsoup correctly(I'm certain this is the main reason), if the error is the .jks, or if I'm entering the wrong information, and I don't really see how to test which part of the code is failing. </p>
  
  <pre><code>        System.setProperty("javax.net.ssl.trustStore", "filePath\\keystore.jks");
  
          Connection.Response loginForm = Jsoup.connect("https://www.tickld.com/signin")
                  .method(Connection.Method.GET).execute();
  
          Document document = Jsoup.connect("https://www.tickld.com/signing")
                  .data("l_username", "myUsername")
                  .data("l_password", "myPassword")
                  .cookies(loginForm.cookies())
                  .post();
  </code></pre>
  
  <p>but whatever I'm doing, it is not logging into the site, it is only taking me to the signin page.</p>