cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Transfer-Encoding: chunked

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 26 Aug 2004 09:43:40 +0200 (CEST)

On Wed, 25 Aug 2004, Seshubabu Pasam wrote:

> Did anyone try chunked request?

I've tried it!

> I was wonder how to specify the chunk size. Looks like by default curl sends
> 1 byte chunks, which is very in-efficient.

Uh, what made to draw this conclusion?

> I will dig in the code, but was wondering if anyone (Daniel?) have an answer
> from the top of the head.

libcurl will send chunks of the size the read callback returns. I don't see
how it can do better than that since it can't know about possible upcoming
chunks.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-08-26