Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 029DEC05F for ; Fri, 25 May 2012 13:39:18 +0000 (UTC) Received: (qmail 69030 invoked by uid 500); 25 May 2012 13:39:17 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 68993 invoked by uid 500); 25 May 2012 13:39:17 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 68985 invoked by uid 99); 25 May 2012 13:39:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2012 13:39:17 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [217.150.250.48] (HELO kalnich.nine.ch) (217.150.250.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2012 13:39:08 +0000 Received: from [192.168.42.168] (unknown [213.55.184.152]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by kalnich.nine.ch (Postfix) with ESMTPSA id DB7DFB830C6 for ; Fri, 25 May 2012 15:38:45 +0200 (CEST) Message-ID: <1337953124.2732.35.camel@ubuntu> Subject: Re: POST Request How to enable Chunk Size From: Oleg Kalnichevski To: HttpClient User Discussion Date: Fri, 25 May 2012 15:38:44 +0200 In-Reply-To: <33904874.post@talk.nabble.com> References: <33904874.post@talk.nabble.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 On Thu, 2012-05-24 at 15:13 -0700, anr wrote: > > DEBUG org.apache.http.wire - >> "800[\r][\n]" > org.apache.http.wire - >> "800[\r][\n]" > > CoreConnectionPNames.SOCKET_BUFFER_SIZE > CoreConnectionPNames.MIN_CHUNK_LIMIT > > How to change the transfer encoding chunk size when request is posted. I > want to set different chunk sizes when we post a request. > > Thanks Per default HttpClient use 2048 byte cache for chunk coded output. So, the chunks should be about 2048 bytes, unless one explicitly uses #flush method to flush out smaller chunks. There is currently no (easy) way of overriding the default size of the chunk cache without creating a custom entity serializer and custom HTTP connection class. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org