Is there much difference between those two and which one is preferably to use?
This interesting blog post from an android developer gives an overview of the different Android’s HTTP clients.
According to this post, URLConnection should be preferred over DefaultHttpClient or AndroidHttpClient on Gingerbread and above.