cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Transferred a partial file

From: leela siva <sivaleelak_at_gmail.com>
Date: Tue, 21 Jan 2014 14:04:26 +0530

HI ,

Thanks for information

i am using this line in my code .Is there any problem with this
.
stat(localFile.c_str(), &file_info)
curl_off_t fsize = (curl_off_t)file_info.st_size;
curl_easy_setopt(m_curl_handle, CURLOPT_INFILESIZE_LARGE,
(curl_off_t)fsize);

Thanks and reagrds
Koka

On Tue, Jan 21, 2014 at 1:53 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Tue, 21 Jan 2014, leela siva wrote:
>
> curl_easy_perform failed with error message = Transferred a partial file
>>
>
> The man page libcurl-errors says this:
>
> CURLE_PARTIAL_FILE (18)
>
> A file transfer was shorter or larger than expected. This happens when
> the
> server first reports an expected transfer size, and then delivers data
> that
> doesn't match the previously given size.
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-01-21