Hi there,

I do a lot of wget without problem, until I tried version 1.7 on the
server at ftp.cw.net. As you can see by the interactive ftp session below,
this server has an unusual behaviour (especially considering that the
initial welcome message reports as a UNIX server):

   $ ftp ftp.cw.net
   Connected to ftp.cw.net.
   220 nostats2 FTP server (UNIX(r) System V Release 4.0) ready.
   Name (ftp.cw.net:prt): ftp
   331 Guest login ok, send ident as password.
   Password:
   230 Guest login ok, access restrictions apply.
   ftp> syst
   500 'SYST': command not understood.
   ftp> pwd
   550 ufs.

wget (version 1.7) falls in a trap when the "syst" request fails:

   $ wget ftp://ftp.cw.net/pub/rr/long/CW.CURRENTSERIAL
   --14:19:31--  ftp://ftp.cw.net/pub/rr/long/CW.CURRENTSERIAL
              => `CW.CURRENTSERIAL'
   Connecting to ftp.cw.net:21... connected!
   Logging in as anonymous ... Logged in!
   ==> SYST ... 
   Server error, can't determine system type.
   done.    ==> PWD ... 
   Error in server response, closing control connection.
   Retrying.

   [...]

It keeps retrying for 20 times (or whatever "tries" value in wgetrc) and
eventually exit without having done it's job.

By comparison, older versions (I have tested 1.5.2 & 1.5.3) do not have
this problem. They do not start with a "syst" request:

   $ wget ftp://ftp.cw.net/pub/rr/long/CW.CURRENTSERIAL
   wget: Error in /usr/local/etc/wgetrc at line 49.
   --09:55:12--  ftp://ftp.cw.net:21/pub/rr/long/CW.CURRENTSERIAL
              => `CW.CURRENTSERIAL.1'
   Connecting to ftp.cw.net:21... connected!
   Logging in as anonymous ... Logged in!
   ==> TYPE I ... done.  ==> CWD pub/rr/long ... done.
   ==> PORT ... done.    ==> RETR CW.CURRENTSERIAL ... done.
   Length: 5 (unauthoritative)
   
       0K ->                                                        [100%]
   
   09:55:13 (4.88 KB/s) - `CW.CURRENTSERIAL' saved [5]

Question:

Why the extra "SYST" done in Version 1.7 and is there a parameter in
wgetrc or on the command line to turn that feature off (and any action
that derives from this)?

(Maybe I skipped something in the doc.)

Or maybe a future release will turn this feature off automatically when it
sees a failure on the SYST request.

Regards.
__

Pierre Thibaudeau                     |   e-mail: <[EMAIL PROTECTED]>
TELEGLOBE CANADA                      |   e-page: <[EMAIL PROTECTED]>
1000, rue de La Gauchetiere ouest     |
Montreal, QC   H3B 4X5                |      Tel: +1-514-868-7257
Canada                                |      fax: +1-514-868-8446

Reply via email to