title: Equivalent of .NET's WebClient and HttpWebRequest in Java?
body: <p>.NET has the <a href="http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx" rel="nofollow noreferrer">HttpWebRequest</a> and <a href="http://msdn.microsoft.com/en-us/library/system.net.webclient(VS.80).aspx" rel="nofollow noreferrer">WebClient</a> classes for simulating a browser's requests.</p>
  
  <p>I'd google it, but I'm not sure what keyword to use.</p>
  
  <p>I want to write code that does does HTTP GETs and POSTs, along with cookies, in an applet or local <code>.jar</code> and gives me back the response in a text string or some other parseable structure.</p>