title: Logging into a website using java
body: <p>I'm looking for a solution to login to a website using a java program.</p>
  
  <p>I found a good script over here:</p>
  
  <p><a href="http://www.dreamincode.net/forums/blog/114/entry-2715-login-to-a-website-from-java/" rel="nofollow">http://www.dreamincode.net/forums/blog/114/entry-2715-login-to-a-website-from-java/</a></p>
  
  <p>But the trouble is with handling cookies? How can I get the cookie info. send by the server?
  Thanks</p>