This doesn't work either:
ClientConfig config = new DefaultApacheHttpClient4Config();
config.getProperties().put(ClientConfig.PROPERTY_CHUNKED_ENCODING_SIZE,
null);
Client client = ApacheHttpClient4.create(config);
This is sent over the wire:
POST /Login HTTP/1.1
Accept: application/json
Content-Type: text/plain
Transfer-Encoding: chunked
Host: 123.456.78.90:333
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
17
...
0