Java connecting to Http which method to use?

Posted by jax on Stack Overflow See other posts from Stack Overflow or by jax
Published on 2010-06-06T05:26:13Z Indexed on 2010/06/06 5:32 UTC
Read the original article Hit count: 166

Filed under:

I have been looking around at different ways to connect to URLs and there seem to be a few.

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

I have seen

URL class
DefaultHttpClient class
And there were some others in apache commons

which method is best?

© Stack Overflow or respective owner

Related posts about java