1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Update documentation about bahviour of -c

* docs/wget.texi: -c will restart download from scratch if server
    does not support RANGE.

    Reported-By: David Chavez
    http://stackoverflow.com/questions/30147332/unexpected-behavior-of-wget
This commit is contained in:
Darshit Shah 2015-05-10 10:46:03 +05:30 committed by Darshit Shah
parent 100da11312
commit 75e5be7aad

View File

@ -694,13 +694,11 @@ Without @samp{-c}, the previous example would just download the remote
file to @file{ls-lR.Z.1}, leaving the truncated @file{ls-lR.Z} file file to @file{ls-lR.Z.1}, leaving the truncated @file{ls-lR.Z} file
alone. alone.
Beginning with Wget 1.7, if you use @samp{-c} on a non-empty file, and If you use @samp{-c} on a non-empty file, and the server does not support
it turns out that the server does not support continued downloading, continued downloading, Wget will restart the download from scratch and overwrite
Wget will refuse to start the download from scratch, which would the existing file entirely.
effectively ruin existing contents. If you really want the download to
start from scratch, remove the file.
Also beginning with Wget 1.7, if you use @samp{-c} on a file which is of Beginning with Wget 1.7, if you use @samp{-c} on a file which is of
equal size as the one on the server, Wget will refuse to download the equal size as the one on the server, Wget will refuse to download the
file and print an explanatory message. The same happens when the file file and print an explanatory message. The same happens when the file
is smaller on the server than locally (presumably because it was changed is smaller on the server than locally (presumably because it was changed