Android HttpPost只返回响应体的一部分

Android HttpPost只返回响应体的一部分,android,response,http-post,chunked,Android,Response,Http Post,Chunked,我正在使用HttpPost方法在服务器上执行登录 CommonsConnection.initHttpConnection(); HttpResponse response; String contentOfMyInputStream; HttpGet initPostMethod = new HttpGet("https://stat.volia.com:8443/ktvinet/index.jsp"); response = CommonsConnection.hc.execute(ini

我正在使用HttpPost方法在服务器上执行登录

CommonsConnection.initHttpConnection();
HttpResponse response;
String contentOfMyInputStream;

HttpGet initPostMethod = new HttpGet("https://stat.volia.com:8443/ktvinet/index.jsp");
response = CommonsConnection.hc.execute(initPostMethod);

HttpPost Statistics = new HttpPost("https://stat.volia.com:8443/ktvinet/j_security_check");
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(3);

nameValuePairs.add(new BasicNameValuePair("j_username", "username"));
nameValuePairs.add(new BasicNameValuePair("j_password", "password"));
nameValuePairs.add(new BasicNameValuePair("submit", "%C2%EE%E9%F2%E8"));

Statistics.setEntity(new UrlEncodedFormEntity(nameValuePairs));
response = CommonsConnection.hc.execute(Statistics);

HttpGet mainPage = new HttpGet("https://stat.volia.com:8443/ktvinet/main.do");
response = CommonsConnection.hc.execute(mainPage);

contentOfMyInputStream = EntityUtils.toString(response.getEntity());
我得到的回应-网页正文-就像网页的1/5部分,以…结尾。。。。
我是否缺少httpclient的某些参数?

您如何检查响应?如果您正在调试器或类似的工具中查找,它很可能会截断长字符串,请尝试将其转储到文件中。

Logcat只显示长字符串响应的一部分。

这实际上是调试器的唯一问题,无法显示完整响应。谢谢谢谢,我没意识到!