core java program to make http request
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1359689/how-to-send-http-request-in-java">How to send HTTP request in java?</a>  </p>
</blockquote>



<p>I have a basic query that I want to write a core Java program that will make a http request.</p>

<p>Let say it will hit and open any website, so how can I write this core java program that will hit the and open any website. I am fully aware that this thing can be achieved with servlets and other advanced framework, also but I want to do it with core Java program.</p>

<p>Please advise how this thing can be achieved in Java? </p>
