I am using the following piece of code to perform an HTTP Request in Android. Everything seems fine, but it appears that the response gets clipped at some point and I can't read the full content of the requested url.
Is there any size limit on the response?
HttpClient httpclient = new DefaultHttpClient();
HttpGet request = new HttpGet(someUrl);
HttpResponse response = httpclient.execute(request);
StatusLine statusLine = response.getStatusLine();
if(statusLine.getStatusCode() == HttpStatus.SC_OK){
ByteArrayOutputStream out = new ByteArrayOutputStream();
response.getEntity().writeTo(out);
out.close();
String responseString = out.toString();
Log.w("Response", responseString); // The response is clipped at some point
}
Thank you.