Hello i got the Problem that my app is so slow with this error:
java.net.ProtocolException: Too many redirects: 21
Now i dont know why it i
Use HttpClient connection class
org.apache.http.client.HttpClient
instead of HttpURLConnection
HttpClient httpClient = new DefaultHttpClient();
httpClient.getParams().setParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS, true);
HttpPost httpPost = new HttpPost("http:\\www.myweb.com");
HttpResponse response = httpclient.execute(httppost);
responseBody = "";
BufferedReader buffer = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
String s = "";
while ((s = buffer.readLine()) != null)
responseBody += s;