Possible Duplicate:
How to send HTTP request in java?
I have a basic query that I want to write a core Java program that will make a http request.
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.
Please advise how this thing can be achieved in Java?