HttpClient 支持chunked编码
需要注意的是
执行后并不会抓取ResponseBody
必须
getResponseBody();
API DOC:
[url]http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/ChunkedInputStream.html[/url]
需要注意的是
httpClient.executeMethod(postMethod);
执行后并不会抓取ResponseBody
必须
System.out.println(postMethod.getResponseBodyAsString());
getResponseBody();
API DOC:
[url]http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/ChunkedInputStream.html[/url]