diff options
-rw-r--r-- | docs/curl.1 | 11 | ||||
-rw-r--r-- | src/main.c | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/docs/curl.1 b/docs/curl.1 index 1cdefea00..5e659a895 100644 --- a/docs/curl.1 +++ b/docs/curl.1 @@ -982,9 +982,9 @@ See ln. random data. The data is used to seed the random engine for SSL connections. See also the \fI--egd-file\fP option. .IP "-r/--range <range>" -(HTTP/FTP/FILE) Retrieve a byte range (i.e a partial document) from a -HTTP/1.1 or FTP server or a local FILE. Ranges can be specified in a number of -ways. +(HTTP/FTP/SFTP/FILE) Retrieve a byte range (i.e a partial document) from a +HTTP/1.1, FTP or SFTP server or a local FILE. Ranges can be specified +in a number of ways. .RS .TP 10 .B 0-499 @@ -1020,8 +1020,9 @@ You should also be aware that many HTTP/1.1 servers do not have this feature enabled, so that when you attempt to get a range, you'll instead get the whole document. -FTP range downloads only support the simple 'start-stop' syntax (optionally -with one of the numbers omitted). It depends on the non-RFC command SIZE. +FTP and SFTP range downloads only support the simple 'start-stop' syntax +(optionally with one of the numbers omitted). FTP use depends on the extended +FTP command SIZE. If this option is used several times, the last one will be used. .IP "--raw" diff --git a/src/main.c b/src/main.c index e90cb3629..7d397362c 100644 --- a/src/main.c +++ b/src/main.c @@ -794,7 +794,7 @@ static void help(void) " --pubkey <key> Public key file name (SSH)", " -Q/--quote <cmd> Send command(s) to server before file transfer (F/SFTP)", " --random-file <file> File for reading random data from (SSL)", - " -r/--range <range> Retrieve a byte range from a HTTP/1.1 or FTP server", + " -r/--range <range> Retrieve only the bytes within a range", " --raw Pass HTTP \"raw\", without any transfer decoding (H)", " -e/--referer Referer URL (H)", " -O/--remote-name Write output to a file named as the remote file", |