Java connecting to Http which method to use?
<p>I have been looking around at different ways to connect to URLs and there seem to be a few.</p>

<p>My requirements are to do POST and GET queries on a URL and retrieve the result.</p>

<p>I have seen</p>

<pre><code>URL class
DefaultHttpClient class
HttpClient - apache commons
</code></pre>

<p>which method is best?</p>
