From bfeae0b5f5a440ee8526b5bae42e53344ebf0a52 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 9 Oct 2008 18:47:02 +0000 Subject: Update docs now that SFTP supports file ranges. --- docs/curl.1 | 11 ++++++----- 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 " -(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 Public key file name (SSH)", " -Q/--quote Send command(s) to server before file transfer (F/SFTP)", " --random-file File for reading random data from (SSL)", - " -r/--range Retrieve a byte range from a HTTP/1.1 or FTP server", + " -r/--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", -- cgit v1.2.3