cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Using FTP's REST COMMAND in LIBCURL

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 14 Aug 2014 14:50:37 +0200 (CEST)

On Thu, 14 Aug 2014, Munirathinam Yuvaraj wrote:

> I am using LIBCURL to download a file, if the network connection gets broken
> then I have used FTP's REST comand (set in a PREQUOTE comand) to implement
> file resumption. LIBCURL resumes file transfer from the specified location
> successfully but at the end, the CURLE_EASY_PERFORM returns the error code
> CURLE_PARTIAL_FILE instead of CURLE_OK. I have intentionally used FTP REST
> command instead of LIBCURL's CURLOPT_RESUME_FROM option. Have I missed any
> setting?

No, but you're tricking libcurl sort of behind its back into downloading less
data than it expects, and it detects that and returns a failure.

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