使用String response = method.getResponseBodyAsString().trim();获得getMethod返回的内容,
每次都出现如下警告:
[WARN org.apache.commons.httpclient.HttpMethodBase] Going to buffer response body of
large or unknown size. Using getResponseBodyAsStream instead is recommended.
解决方法:
问题是解决了,但不知道出现该问题的根源,如果哪位大虾明白还请留言相告,谢谢!!