title: Why i can not login with jsoup?
body: <p>I am trying to make java log into a website (discord).</p>
  
  <p>I want it to open my browser and log on. Then it must log out again.</p>
  
  <p>But it does not work.</p>
  
  <p>My code:</p>
  
  <pre><code>import org.jsoup.Connection;
  import org.jsoup.Jsoup;
  import org.jsoup.nodes.Document;
  
  public class HttpUrlConnectionExample {
  
       public static void main(String[] args) throws Exception {
  
      Connection.Response loginForm = Jsoup
            .connect("https://discordapp.com/app")
            .method(Connection.Method.GET)
            .execute();
  
          Document doc = loginForm.parse();
          String csrf = doc.select("input[name=csrf]").val();
          Connection.Response response = Jsoup.connect("https://discordapp.com/app")
                  .data("email", "myemail")
                  .data("pasword", "mypass")
                  .data("login", "loginform")
                  .data("csrf", csrf)
                  .cookies(loginForm.cookies())
                  .method(Connection.Method.POST)
                  .execute();
          String body = response.body();
          if(body.contains("Welcome")){
              System.out.println("Password incorrect!");
          } else if(body.contains("Gebruikersnaam werd niet gevonden.")){
              System.out.println("Not found username!");
          } else {
              System.out.println("Login successfully!");          
          }
  
      }
  }
  </code></pre>