if (Build.VERSION.SDK_INT >= 9) {
stack = new HurlStack();-->HttpURLConnection
} else {
// Prior to Gingerbread, HttpUrlConnection was unreliable.
// See: http://android-developers.blogspot.com/2011/09/androids-http-clients.html
stack = new HttpClientStack(AndroidHttpClient.newInstance(userAgent)); -->Apache Http client
}HttpURLConnection or Apache Http client
原文:http://blog.csdn.net/ruils/article/details/40856145