My internet connection has an annoying problem of interrupting downloads too frequently. That way, downloading even resumable files can be tedious. Using the following one liner with curl, Life becomes much easier
until curl -C - -o "<output_file>" "<url>"; do :; done
Until makes sure the loop continues till curl returns a success status. A colon(:) is a no operation command. This one liner can obviously be modified to suit your needs.