Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is curl able to retry from the middle of a file? Beyond the sane defaults that's where wget has been nice for me; if the connection drops it can pick right back up where it left off.


Yes, curl can resume partial downloads. You need to pass `-C -` to do so, which is a pretty good example of "the command line flags aren't easy to remember"


It's also yet another example of "could you please just do the right thing by default".

curl wants to be a swiss army knife, and so you'll need to configure everything just right so you don't accidentally get the bottle opener instead of the downloader. wget just downloads, and does it well.


So far, I’ve gathered the default command to be

curl -LOCf URL




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: