Bob Jacoby opened SPR-8682 and commented
I use spring with Apache's HttpClient 4.1. There is an outstanding feature request for officially supporting this version of HttpClient since the currently supported version (3.x) is no longer supported (see #11385). I created a port to the newer version of HttpClient (code included in referenced issue).
However, in 3.0.6 the HttpMessageConverters now set the content-length header on the message prior to using the httpclient to send the message. HttpClient 4.1 expects this header to NOT be set because it expects to be the one to set that header.
It would be nice to at least have the option for the converters to not set the content length. Ideally it would default to not setting them since that would be compatible with Spring 3.0.5. Otherwise I will have to rewrite all the message converters to upgrade to 3.0.6.
Affects: 3.0.6
Issue Links: