]> granicus.if.org Git - curl/commitdiff
Update docs now that SFTP supports file ranges.
authorDan Fandrich <dan@coneharvesters.com>
Thu, 9 Oct 2008 18:47:02 +0000 (18:47 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 9 Oct 2008 18:47:02 +0000 (18:47 +0000)
docs/curl.1
src/main.c

index 1cdefea0027469bc41442668bcf7b289e63ad94a..5e659a895928f44487e5f71c40769b3011169e1c 100644 (file)
@@ -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"
index e90cb362941be03a7f3a67bdc9c1f6fc4e24ca99..7d397362c899cfbd7702d1486695fdab82a69547 100644 (file)
@@ -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",