RE: usage CURLOPT_TIMECONDITION with Upload FTP
Date: Tue, 5 Apr 2005 12:43:43 +0200 (CEST)
On Tue, 5 Apr 2005 christophe.legry_at_orsyp.com wrote:
> I added the modified source file ftp.c. (line 2225)
Please provide patches with 'diff -u'. It would've saved us some 120KB to each
Also, the fix is not really fine. Setting infilesize to -1 may be what
prevents an error to appear for you, but it also changes the variable
internally and thus if you try the same upload again on the same handle the
app will have to reset the filesize and that is not the intended nor the
documented behaviour of easy handle options.
I suggest you instead make the fix to check for if 'ftp->no_transfer' is TRUE
and if so avoid the error message about failed upload.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-04-05