cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Is it possible to reuse a curl_easy FTP handle

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 1 Apr 2003 17:08:02 +0200 (CEST)

On Tue, 1 Apr 2003, Mudumbai, Rajanarayanan wrote:

> Thank you for your response. I saw that the return code is 18
> (CURLE_PARTIAL_FILE) as some of the characters may not have been
> transferred.

Ah, yes, that's the explanation!

> I am doing an ascii transfer of a VMS indexed file of fixed length records.
> I guess the transfer is OK as the transferred file is correct as it is
> identical to the file transferred using ftp. The reason why ftp_sendquote
> was not called must be the non-zero return code from the transfer.

Yes, the quote series are not sent when a failure is detected.

> I am wondering if you are considering the case of CURLE_PARTIAL_FILE as an
> aborted transfer that might be continued, in which case it would be
> appropriate not to send POSTQUOTE commands.

libcurl treats all errors the same. Error => no quote commands sent.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
Received on 2003-04-01