Same for 1.7 (Was: wget 1.6 can not parse this server response)

2001-07-02 Thread Jeroen W. Pluimers \(mailings\)


T:\TMP>wget -d -m ftp://ftp.pc.ibm.com/pub/pccbbs/mobiles/spsdiv62.exe
DEBUG output created by Wget 1.7 on Windows.

parseurl ("ftp://ftp.pc.ibm.com/pub/pccbbs/mobiles/spsdiv62.exe";) -> host
ftp.pc.ibm.com -> ftp_type I -> opath pub/pccbbs/mobiles/spsdiv62.exe -> dir
pub/pccbbs/mobiles -> file spsdiv62.exe -> ndir pub/pccbbs/mobiles
newpath: /pub/pccbbs/mobiles/spsdiv62.exe
Checking for ftp.pc.ibm.com in host_name_address_map.
Checking for ftp.pc.ibm.com in host_slave_master_map.
First time I hear about ftp.pc.ibm.com by that name; looking it up.
Caching ftp.pc.ibm.com <-> 204.146.167.81
Checking again for ftp.pc.ibm.com in host_slave_master_map.
Using `ftp.pc.ibm.com/pub/pccbbs/mobiles/.listing' as listing tmp file.
--10:01:37--  ftp://ftp.pc.ibm.com/pub/pccbbs/mobiles/spsdiv62.exe
   => `ftp.pc.ibm.com/pub/pccbbs/mobiles/.listing'
Connecting to ftp.pc.ibm.com:21... Found ftp.pc.ibm.com in
host_name_address_map: 204.146.167.81
Created fd 384.
connected!
Logging in as anonymous ... 220 ftp.pc.ibm.com FTP server (Version
wu-2.6.1(1) Mon Jul 10 14:25:28 EDT 2000) ready.

--> USER anonymous

331 Guest login ok, send your complete e-mail address as password.

--> PASS -wget@

230 Guest login ok, access restrictions apply.
Logged in!
==> SYST ...
--> SYST

215 UNIX Type: L8
done.==> PWD ...
--> PWD

257 "/" is current directory.
done.
==> TYPE I ...
--> TYPE I

200 Type set to I.
done.  changing working directory
Prepended initial PWD to relative path:
  old: 'pub/pccbbs/mobiles'
  new: '/pub/pccbbs/mobiles'
==> CWD /pub/pccbbs/mobiles ...
--> CWD /pub/pccbbs/mobiles

250 CWD command successful.
done.
==> PORT ... Master socket fd 396 bound.

--> PORT 192,168,0,45,16,39


Error in server response, closing control connection.
Closing fd 384
Closing fd 396
Retrying.

Jeroen W. Pluimers
Consultant at All I'M
http://www.all-im.com




Re: wget 1.6 can not parse this server response

2001-07-02 Thread Daniel Stenberg

On Mon, 2 Jul 2001, Jeroen W. Pluimers (mailings) wrote:

> ==> PORT ... Master socket fd 396 bound.
>
> --> PORT 192,168,0,45,16,4
>
> Error in server response, closing control connection.

If you would have seen the server response, I bet this would've been easier
to understand.

Since wget obviously sends a private IP to the server (192.168.* is one of
those networks you use privately), the server can't respond to that address
and probably generates an error text saying something like that.

I don't know how to get wget to pick a different IP address for the PORT
command, but instead you could go with passive ftp: --passive-ftp

-- 
  Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol






wget 1.6 can not parse this server response

2001-07-02 Thread Jeroen W. Pluimers \(mailings\)

Somehow this used to work, but does not work any more.

wget -m ftp://ftp.pc.ibm.com/pub/pccbbs/mobiles/spsdiv62.exe

Please advise.

The result is this:


--09:44:26--  ftp://ftp.pc.ibm.com/pub/pccbbs/mobiles/spsdiv62.exe
   => `ftp.pc.ibm.com/pub/pccbbs/mobiles/.listing'
Connecting to ftp.pc.ibm.com:21... connected!
Logging in as anonymous ... Logged in!
==> TYPE I ... done.  ==> CWD pub/pccbbs/mobiles ... done.
==> PORT ...
Error in server response, closing control connection.
Retrying.

The debug output is this:

I:\>wget -d -m ftp://ftp.pc.ibm.com/pub/pccbbs/mobiles/spsdiv62.exe
DEBUG output created by Wget 1.6 on Windows.

parseurl ("ftp://ftp.pc.ibm.com/pub/pccbbs/mobiles/spsdiv62.exe";) -> host
ftp.pc.ibm.com -> opath pub/pccbbs/mobiles/spsdiv62.exe -> dir
pub/pccbbs/mobiles -> file spsdiv62.exe -> ndir pub/pccbbs/mobiles
newpath: /pub/pccbbs/mobiles/spsdiv62.exe
Checking for ftp.pc.ibm.com.
This is the first time I hear about host ftp.pc.ibm.com by that name.
Using `ftp.pc.ibm.com/pub/pccbbs/mobiles/.listing' as listing tmp file.
--09:46:02--  ftp://ftp.pc.ibm.com/pub/pccbbs/mobiles/spsdiv62.exe
   => `ftp.pc.ibm.com/pub/pccbbs/mobiles/.listing'
Connecting to ftp.pc.ibm.com:21... Created fd 384.
connected!
Logging in as anonymous ... 220 ftp.pc.ibm.com FTP server (Version
wu-2.6.1(1) Mon Jul 10 14:25:28 EDT 2000) ready.

--> USER anonymous

331 Guest login ok, send your complete e-mail address as password.

--> PASS Administrator@

230-###
230-# Welcome to the IBM PC Company FTP site! #
230-# #
230-# Files are stored in the /pub directory. #
230-# #
230-# Please be sure your ftp client is in#
230-# the correct transfer mode (BINARY/ASCII)#
230-# before downloading files.   #
230-# #
230-# Please remember that file names and #
230-# directory names are CaSe SeNsItIvE! #
230-###
230-
230-
230-###
230-# Welcome to the IBM PC Company FTP site! #
230-# #
230-# Files are stored in the /pub directory. #
230-# #
230-# Please be sure your ftp client is in#
230-# the correct transfer mode (BINARY/ASCII)#
230-# before downloading files.   #
230-# #
230-# Please remember that file names and #
230-# directory names are CaSe SeNsItIvE! #
230-###
230-
230-
230 Guest login ok, access restrictions apply.
Logged in!
==> TYPE I ...
--> TYPE I

200 Type set to I.
done.  ==> CWD pub/pccbbs/mobiles ...
--> CWD pub/pccbbs/mobiles

250-To obtain a list of all files on this server, get /pub/allfiles.txt
250-
250-When downloading files, please be aware that filenames are
CASE-sensitive!
250-
250-
250 CWD command successful.
done.
==> PORT ... Master socket fd 396 bound.

--> PORT 192,168,0,45,16,4


Error in server response, closing control connection.
Closing fd 384
Closing fd 396
Retrying.

Jeroen W. Pluimers
Consultant at All I'M
http://www.all-im.com