deyanTG / caldav4j

Automatically exported from code.google.com/p/caldav4j
0 stars 0 forks source link

Update to latest version of Slide client library, HttpClient #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
...will make many people happy. 

Note that with newer versions of HttpClient setting content-length header
is not done automatically...

Original issue reported on code.google.com by bobbyru...@gmail.com on 30 Oct 2007 at 12:11

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago
done to httpclient-3.0 

Original comment by robipo...@gmail.com on 28 Oct 2008 at 2:49