Closed GoogleCodeExporter closed 8 years ago
HttpClient 3.1 will set the Content-Length header automatically if the content
length
is known and chunked encoding is not used. See RequestEntity.getContentLength
for
details:
http://jakarta.apache.org/httpcomponents/httpclient-3.x/apidocs/org/apache/commo
ns/httpclient/methods/RequestEntity.html#getContentLength()
IIRC, Content-Length and "Transfer-Encoding: chunked" are mutually exclusive.
You can
disable the use of chunked encoding by enforcing protocol version HTTP/1.0
instead of
the default HTTP/1.1. If there are problems with these mechanism, please report
them
on the HttpClient user list.
cheers,
Roland
Original comment by google...@dubioso.net
on 11 Dec 2007 at 2:56
done to httpclient-3.0
Original comment by robipo...@gmail.com
on 28 Oct 2008 at 2:49
Original issue reported on code.google.com by
bobbyru...@gmail.com
on 30 Oct 2007 at 12:11