users@jersey.java.net

[Jersey] Re: Disabling chunked transfer encoding

From: <armando.singer_at_gmail.com>
Date: Sat, 28 Jul 2012 02:25:24 +0000 (GMT)

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