curl-users
Re: Resume a broken download
Date: Sat, 2 Oct 2010 14:18:26 +0200 (CEST)
On Sat, 2 Oct 2010, Abhijeet Rastogi wrote:
> Can you guide me on how do I resume a broken download.
> Lets suppose I am downloading a file using this command..
>
> curl --interface eth0:0 --range 10000001,20000000
> http://some.server.com/bigfile -o bigfile
I assume you meant that range to be 10000001-20000000 (with a dash, not a
comma between the numbers).
> But, my computer was shutdown unexpectedly, So, how can I resume this
> download??
You asked for the byte range starting at offset 10000001 and you wanted it to
end at byte offset 20000000. If your transfer gets aborted and you only got
the first X bytes, then you can get the remainders with a range like (10000001
+ X)-20000000.
-- / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-10-02