I am having the same issue--I'm trying to disable chunked transfer
encoding so that I can make a post with a Content-Length.
Neither
jerseyClient.setChunkedEncodingSize(null); // do not use
chunked encoding
-OR-
jerseyClient.getProperties().put(ClientConfig.PROPERTY_CHUNKED_ENCODING
_SIZE, null);
works when using Jersey ApacheHttpClient4 as the Client.
I have confirmed this with Jersey 1.12 and 1.13. This happens when I
post a String, a byte[], or anything with a Provider that calculates
size.
Any ideas?
Thanks,
Armando