cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Transferred a partial file

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 21 Jan 2014 09:58:18 +0100 (CET)

On Tue, 21 Jan 2014, leela siva wrote:

> 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);

First, please don't top-post:
http://curl.haxx.se/mail/etiquette.html#Do_Not_Top_Post

That piece of the code is not a problem. The error code is for what you
receive or don't receive.

Also, you didn't tell us which libcurl verison or what platform or what
protocol your using. You leave us guessing quite a lot and that will lead to
less good advice and answers.

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