I decided to start testing my app with Android 4.4 and noticed that the Android HTTP connection APIs are much stricter than before? I have never had this issue and I assume
I've implemented a solution based on the Apache HttpClient, you can find it as a gist here.
Here is how to use it:
IcyGetRequest request = new IcyGetRequest(urlStr); HttpResponse response = request.get(); int responseCode = response.getStatusLine().getStatusCode();