cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Size of chunks in chunked uploads

From: Daniel Stenberg <daniel_at_haxx.se>
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.se
Received on 2009-05-01

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET