title: Login a website with JSoup post method
body: <p>I'm trying to login into a website with JSoup post method. I saw some examples but neither are working to me.
  I'm trying to login to: <a href="http://ug.technion.ac.il/Tadpis.html">http://ug.technion.ac.il/Tadpis.html</a>
  For that i have the following code:</p>
  
  <pre><code> String url = "http://ug.technion.ac.il/Tadpis.html";
   doc = Jsoup.connect(url).data("userid", "my_user_id")
                  .data("password", "my_password").data("function","signon").data("submit", "Signon").post();
  </code></pre>
  
  <p>Apparently I'm missing some data (I don't know which). Another thing that isn't clear enought to me is the url. When examinig the html of the above url i can see this line:</p>
  
  <pre><code> &lt;form action="http://techmvs.technion.ac.il:80/cics/wmn/wmngrad?aapmlkwi&amp;ORD=1&amp;s=1" method="POST" name="SignonForm"
  </code></pre>
  
  <p>which is a different url from the one stated above. Which one of these do i suppose to use as the url parameter to "connect" method?</p>
  
  <p>Thanks!</p>