]> sjero.net Git - wget/commitdiff
[svn] Use the passive FTP transfer mode by default.
authorhniksic <devnull@localhost>
Sun, 6 Mar 2005 19:34:25 +0000 (11:34 -0800)
committerhniksic <devnull@localhost>
Sun, 6 Mar 2005 19:34:25 +0000 (11:34 -0800)
NEWS
doc/wget.texi
src/ChangeLog
src/init.c
src/main.c

diff --git a/NEWS b/NEWS
index 05757e79c5a723286c84f0d2fee48065efbf28de..68e6bb1a440a826ec02cb32cca7bfcc395d11c85 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -25,6 +25,10 @@ where the last attempt left off, and only then continues appending to
 the file.  That way the downloaded file never shrinks, and "start
 over" retries work correctly even when downloading to stdout.
 
 the file.  That way the downloaded file never shrinks, and "start
 over" retries work correctly even when downloading to stdout.
 
+** Passive FTP is now the default FTP transfer mode.  Use
+`--no-passive-ftp' or specify `passive_ftp = off' in your init file to
+revert to the old behavior.
+
 ** The `--header' option can now be used to override generated
 headers.  For example, `wget --header="Host: foo.bar"
 http://127.0.0.1' tells Wget to connect to localhost, but to specify
 ** The `--header' option can now be used to override generated
 headers.  For example, `wget --header="Host: foo.bar"
 http://127.0.0.1' tells Wget to connect to localhost, but to specify
@@ -54,9 +58,9 @@ have also been changed this way, but they still accept the old syntax
 for backward compatibility.  For example, instead of `--glob=off' you
 can write `--no-glob'.
 
 for backward compatibility.  For example, instead of `--glob=off' you
 can write `--no-glob'.
 
-Allowing `--no-OPTION' for every `--OPTION' is useful because it
-allows the user to override non-default behavior specified via
-`.wgetrc'.
+Allowing `--no-OPTION' for every `--OPTION' and the other way around
+is useful because it allows the user to override non-default behavior
+specified via `.wgetrc'.
 
 ** The new option `--keep-session-cookies' causes `--save-cookies' to
 save session cookies along with the permanent ones.  This is useful on
 
 ** The new option `--keep-session-cookies' causes `--save-cookies' to
 save session cookies along with the permanent ones.  This is useful on
index db7b10d8a86a90bd966bb0d67f93e564383e008b..6719991b01102ca64307f6e9d3c2a5d646e22b31 100644 (file)
@@ -177,9 +177,10 @@ download from where it left off.
 @item
 Wget supports proxy servers, which can lighten the network load, speed
 up retrieval and provide access behind firewalls.  However, if you are
 @item
 Wget supports proxy servers, which can lighten the network load, speed
 up retrieval and provide access behind firewalls.  However, if you are
-behind a firewall that requires that you use a socks style gateway, you
-can get the socks library and build Wget with support for socks.  Wget
-also supports the passive @sc{ftp} downloading as an option.
+behind a firewall that requires that you use a socks style gateway,
+you can get the socks library and build Wget with support for socks.
+Wget uses the passive @sc{ftp} downloading by default, active @sc{ftp}
+being an option.
 
 @sp 1
 @item
 
 @sp 1
 @item
@@ -1264,10 +1265,17 @@ system-specific.  This is why it currently works only with Unix @sc{ftp}
 servers (and the ones emulating Unix @code{ls} output).
 
 @cindex passive ftp
 servers (and the ones emulating Unix @code{ls} output).
 
 @cindex passive ftp
-@item --passive-ftp
-Use the @dfn{passive} @sc{ftp} retrieval scheme, in which the client
-initiates the data connection.  This is sometimes required for @sc{ftp}
-to work behind firewalls.
+@item --no-passive-ftp
+Disable the use of the @dfn{passive} FTP transfer mode.  Passive FTP
+mandates that the client connect to the server to establish the data
+connection rather than the other way around.
+
+If the machine is connected to the Internet directly, both passive and
+active FTP should work equally well.  Behind most firewall and NAT
+configurations passive FTP has a better chance of working.  However,
+in some rare firewall configurations, active FTP actually works when
+passive FTP doesn't.  If you suspect this to be the case, use this
+option, or set @code{passive_ftp=off} in your init file.
 
 @cindex symbolic links, retrieving
 @item --retr-symlinks
 
 @cindex symbolic links, retrieving
 @item --retr-symlinks
@@ -2387,10 +2395,11 @@ Download all ancillary documents necessary for a single @sc{html} page to
 display properly---the same as @samp{-p}.
 
 @item passive_ftp = on/off/always/never
 display properly---the same as @samp{-p}.
 
 @item passive_ftp = on/off/always/never
-Set passive @sc{ftp}---the same as @samp{--passive-ftp}.  Some scripts
-and @samp{.pm} (Perl module) files download files using @samp{wget
---passive-ftp}.  If your firewall does not allow this, you can set
-@samp{passive_ftp = never} to override the command-line.
+Change setting of passive @sc{ftp}, equivalent to the
+@samp{--passive-ftp} option.  Some scripts and @samp{.pm} (Perl
+module) files download files using @samp{wget --passive-ftp}.  If your
+firewall does not allow this, you can set @samp{passive_ftp = never}
+to override the command-line.
 
 @item passwd = @var{string}
 Set your @sc{ftp} password to @var{password}.  Without this setting, the
 
 @item passwd = @var{string}
 Set your @sc{ftp} password to @var{password}.  Without this setting, the
index 39af0663565cd740285533fac70fac5a7915ba38..2a518749ee29771c6158d838f2eba35a5b9f28fd 100644 (file)
@@ -1,3 +1,7 @@
+2005-03-06  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * init.c (defaults): Use passive FTP by default.
+
 2005-03-06  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * mswindows.c: Provide wrappers to Winsock functions that set
 2005-03-06  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * mswindows.c: Provide wrappers to Winsock functions that set
index 9cb2e9c7cca79925be1488e9ec3728b73508efab..4c3356e1b0bcde2d4cfe2eb5840e272827f238f6 100644 (file)
@@ -287,6 +287,7 @@ defaults (void)
   opt.dots_in_line = 50;
 
   opt.dns_cache = 1;
   opt.dots_in_line = 50;
 
   opt.dns_cache = 1;
+  opt.ftp_pasv = 1;
 
   /* The default for file name restriction defaults to the OS type. */
 #if !defined(WINDOWS) && !defined(__CYGWIN__)
 
   /* The default for file name restriction defaults to the OS type. */
 #if !defined(WINDOWS) && !defined(__CYGWIN__)
index 32a79f1b0595e3306276b24d43351ad7cf4e0d66..eb04478323065848144e0bf40f49f4adce176f55 100644 (file)
@@ -555,7 +555,7 @@ FTP options:\n"),
     N_("\
        --no-glob               turn off FTP file name globbing.\n"),
     N_("\
     N_("\
        --no-glob               turn off FTP file name globbing.\n"),
     N_("\
-       --passive-ftp           use the \"passive\" transfer mode.\n"),
+       --no-passive-ftp        disable the \"passive\" transfer mode.\n"),
     N_("\
        --retr-symlinks         when recursing, get linked-to files (not dir).\n"),
     N_("\
     N_("\
        --retr-symlinks         when recursing, get linked-to files (not dir).\n"),
     N_("\