title: Login into Linkedin with JSoup
body: <p>I need to login into Linkedin with Jsoup, preferably.</p>
  
  <p>This is what I'm using to login to another website but it isn't working for Linkedin.</p>
  
  <pre><code>Connection.Response res = Jsoup
      .connect("https://www.linkedin.com/uas/login?goback=&amp;trk=hb_signin")
      .data("session_key", mail, "session_password", password)
      .method(Connection.Method.POST)
      .timeout(60000).
  
  // Also tried "https://www.linkedin.com/uas/login-submit"
  
  Map&lt;String, String&gt; loginCookies = res.cookies();
      //Checking a profile to see if it was succesful or if it returns the login page.    
  Document currentPage = Jsoup.connect(someProfileLink).cookies(loginCookies).timeout(10000).
  System.out.println("" + currentPage.text());
  </code></pre>
  
  <p>What am I doing wrong? </p>
  
  <p>I need to be able to fetch user profiles by using a web crawler but whatever I try I can't get the login cookies.</p>