estou tentando ler uma URL usando HttpClient, já fiz isso algumas vezes e tudo deu certo, mas sempre com respostas pequenas
agora estou tentando ler uma url que o texto de resposta é grande, ele acha a url e retorna a resposta, porém corta a mesma, não retornando todo o xml que deveria
HttpClient cliente = new HttpClient();
GetMethod requisicao = new GetMethod();
HostConfiguration hostConfig = new HostConfiguration();
// Configura o RETRY_HANDLER e o SO_TIMEOUT
requisicao.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(2, false));
requisicao.getParams().setParameter(HttpMethodParams.SO_TIMEOUT, new Integer(2000));
// Configura o timeout da conexão
cliente.getParams().setParameter(HttpConnectionParams.CONNECTION_TIMEOUT, new Integer(2000));
hostConfig.setHost( "www.globo.com" );
requisicao.setPath( caminho );
cliente.executeMethod(hostConfig, requisicao);
//carrega xml-file
return requisicao.getResponseBodyAsString();