HttpClient chunked 编码

HttpClient 支持chunked编码

需要注意的是
httpClient.executeMethod(postMethod);

执行后并不会抓取ResponseBody

必须
System.out.println(postMethod.getResponseBodyAsString());


getResponseBody();

API DOC:
http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/ChunkedInputStream.html

你可能感兴趣的:(java,apache,html)