curl-users
Re: bug with curl --continue-at - -O http://foo.com/bar
Date: Sat, 2 Aug 2008 11:38:59 -0700
On Sat, Aug 02, 2008 at 10:08:37AM -0400, Dave Yost wrote:
> If curl is asked to continue from where it left off, and the file was already
> correctly downloaded, it exits with a result code of 18. This would be OK I
> guess if the 18 were used only for this situation, but apparently it is used
> for other situations.
>
> I suggest that curl should exit with status 0 if the file is already downloaded
> correctly.
It normally does. Take a look at tests 92 and 1040, which test this exact
situation. It sounds to me like the server is not supporting the range
request properly. If you use the -v option, you should see how it's
handling it.
> I presume that curl doesn't just look for the count of bytes in the file it's
> resuming but instead actually verifies that those bytes are correct.
No, it just looks at the size, not the content.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has moved ------------------------------------------------------------------- List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2008-08-02