linux - How to resume interrupted download automatically in curl?
I'm working with curl in Linux. I'm downloading a part of a file in ftp server (using the -r option), but my connection is not good, it always interrupts. I want to write a script which resume download when I'm connected again.

curl -L -O your_url

This will download the file.
Now let's say your connection is interrupted;
curl -L -O -C - your_url

This will continue downloading from the last byte downloaded
From the manpage:

Use "-C -" to tell curl to automatically find out where/how to resume the transfer. It then uses the given output/input files to figure that out.

