cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_INFILESIZE and padded files

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 17 Jan 2007 00:04:58 +0100 (CET)

On Tue, 16 Jan 2007, Peter Seebach wrote:

> Well, yes. In this case, I have a file which is always padded, and I want
> to upload the unpadded portion, so I want to tell curl to upload ONLY the
> number of bytes I specify, even if there seems to be more data in the file.

Then you should probably provide a read callback that only sends that amount
of data to libcurl when it asks for data.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-01-17