curl-library
Re: Size of chunks in chunked uploads
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 1 May 2009 20:23:35 +0200 (CEST)
Date: Fri, 1 May 2009 20:23:35 +0200 (CEST)
On Fri, 1 May 2009, Apurva Mehta wrote:
> Hi, I was wondering if there is any way to specif the chunk size in HTTP
> uploads with chunked transfer-encoding (ie. with the
> "Transfer-encoding:chunked" header). It seems that the default chunk size
> is 128 bytes. I would like to increase this value and was wondering if there
> is any option I can specify (through libcurl or command line curl) to do
> this.
There is no particular default size, libcurl will "wrap" whatever the read
function returns with the chunked transfer magic. And no, there's no way to
change that other than to simply make your read callback return larger or
smaller chunks.
-- / daniel.haxx.seReceived on 2009-05-01