users@jersey.java.net

[Jersey] Re: Disabling chunked transfer encoding

From: <java.net_at_byrman.demon.nl>
Date: Wed, 4 Jul 2012 07:14:21 +0000 (GMT)

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