cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re:httpput.c

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 11 Jul 2006 23:19:18 +0200 (CEST)

On Mon, 10 Jul 2006, Parvinder Singh Arora wrote:

> In this particular example i can see a callback function registered to read
> from file, the function also takes the size parameter, which determines how
> much data (in terms of bytes) need to be read.

You should read and return as much as possible to libcurl to achieve the
fastest possible uploads.

> How is the value determined for reading a particular file, is it
> configurable based upon the size of the file ?

What value? The size value passed to the callback is the size of the buffer
libcurl has internally, it is always as big as possible.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-07-11