title: How to POST Data into website using Jsoup
body: <p>I am trying to POST data into website to make a login into the site using Jsoup , but its not working ?</p>
  
  <p>I am trying the code </p>
  
  <pre><code>    Document docs = Jsoup.connect("http://some.com/login")
          .data("cmd", "login","username", "xxxx","password", "yyyyy")
          .referrer("http://some.com/login/").post();
  </code></pre>
  
  <p>here it is giving normal page of login in pagesource</p>
  
  <p>i have also tried the code </p>
  
  <pre><code> Document docs = (Document) Jsoup.connect("http://some.com/login")
      .data("cmd", "login","username", "xxxx","password", "yyyyy")
      .referrer("http://some.com/login/").method(Method.POST).execute().parse();
  </code></pre>
  
  <p>here also it is giving normal page of login again in pagesource.</p>
  
  <p>Any suggestions regarding the same would be highly appreciated !!</p>
  
  <p>Thanks....</p>