I have developed an Android app which sends/gets some data to/from server. The app works fine, however, on Android KitKat 4.4.2 the app throws an exception:
"java.net.ProtocolException: Unexpected status line: ��".
Please tell me how to get rid of it and why this is happening
HttpURLConnection.setFollowRedirects(true);
con = (HttpURLConnection) new URL(url[0]).openConnection();
con.setRequestMethod("GET");
con.setConnectTimeout(10000);