The android developer blog here explains the 2 different methods to make http connections in android. It says the HttpURLConnection should be used for newer apps.
What I want to know is what are the bugs in DefaulHttpClient when used in android 2.3(Gingerbread) and above?
EDIT
Removed second part of the question. I want to know mainly about the bugs with the DefaultHttpConnection in 2.3 and above because I have a very small use case (POST requests sending and receiving JSON formatted strings) and if there is no problem in this use case I don’t want to bloat my code.
You can use Build.VERSION to find out which version of Android your application is running on and use that to decide which way to go.
http://developer.android.com/reference/android/os/Build.VERSION.html