statusline.getStatusCode(), statusline.getReasonPhrase());
}
HttpEntity entity = response.getEntity();
if (entity == null) {
// Should _almost_ never happen with HTTP GET requests.
throw new ClientProtocolException("Empty entity");
}
long maxlen = getHttpClient().getParams().getLongParameter(DroidsHttpClient.MAX_BODY_LENGTH, 0);
return new AdvancedHttpContentEntity(entity,response.getAllHeaders(),maxlen);
}