cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Getting CURLE_PARTIAL_FILE, how fix it?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 26 Jul 2008 22:24:16 +0200 (CEST)

On Sat, 26 Jul 2008, Tiago Conceição wrote:

>>> i removed: curl_easy_setopt(curl,
>>> CURLOPT_INFILESIZE_LARGE,(curl_off_t)file_info.st_size);

>> If that line breaks your app, it is most likely because you don't build it
>> with the necessary large file options set, so that 'curl_off_t' differs in
>> size between your app and libcurl.

> But i realy needit in my app or its optional?

It is optional but recommended since it increases libcurl's ability to detect
transfer errors. Also, if the reason your failure to use truly is that large
file define, you'll risk hitting that problem anyway so avoiding an option
because of that seems suboptimal to me.

-- 
  / daniel.haxx.se
Received on 2008-07-26