Use HttpURLConnection instead of DefaultHttpClient