cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Can I send only part of a file?

From: Tim Bannister <isoma_at_jellybaby.net>
Date: Mon, 9 May 2011 19:19:20 +0100

On 9 May 2011, at 19:12, Dan Fandrich wrote:

> The data sent by by libcurl comes from the CURLOPT_READFUNCTION callback function which is part of your app. Once the app has finished sending all it wants, just return the end-of-file indication to libcurl (instead of more data) and it will complete the transfer.

Won't that truncate the file? And, if it does not, won't that behaviour confuse other programmers who want the truncate behaviour?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-09