Juon, Stefan
Wed, 06 Aug 2008 00:05:24 -0700
Hi there I'm trying to mirror a ftp site over a proxy (Sun Java Webproxy 4.0.4) using this wget-command: export ftp_proxy=http://proxy.company.com:8080 wget --follow-ftp --passive-ftp --proxy=on --mirror --output-file=./logfile.wget ftp://ftpde.nai.com/CommonUpdater The result is that I get a file ftpde.nai.com/CommonUpdater/index.html instead of the mirrored data. The index.html is the same as I get if I connect using a browser. Tracing the traffic on the proxy I see this (I snipped just the payload): 220 spftp/1.0.0000 Server [213.200.104.32] USER anonymous 331 Password required for USER. PASS wget@ 230- 230- ------------------------------------------------------------------------ --- 230- WARNING: This is a restricted access system. If you do not have explicit 230- permission to access this system, please disconnect immediately! 230 ------------------------------------------------------------------------ ---- SYST 215 UNIX PASV 227 Entering Passive Mode. (213,200,104,32,193,166) TYPE I 200 TYPE set to I. CWD /CommonUpdater/ 250 CWD command successful. LIST 150 Opening ASCII mode data connection for /commonupdater. 226 Transfer Complete ....and nothing else. Doing the wget without a proxy I see this traffic: 220 spftp/1.0.0000 Server [213.200.104.29] USER anonymous 331 Password required for USER. PASS -wget@ 230- 230- ------------------------------------------------------------------------ --- 230- WARNING: This is a restricted access system. If you do not have explicit 230- permission to access this system, please disconnect immediately! 230 ------------------------------------------------------------------------ ---- SYST 215 UNIX PWD 257 "/" is current directory. TYPE I 200 TYPE set to I. CWD /CommonUpdater 250 CWD command successful. PASV 227 Entering Passive Mode. (213,200,104,29,203,13) LIST 150 Opening ASCII mode data connection for /commonupdater. 226 Transfer Complete CWD /CommonUpdater 250 CWD command successful. PASV 227 Entering Passive Mode. (213,200,104,29,203,34) RETR 53395340.upd ...and so on. So the difference is that the transfer over the proxy stops after the listing, the listing is somehow stored into a index.html and proxy behaves rather than a webbrowser. Proxy is Sun Java Webproxy 4.0.3. Are there any options of wget I have to set? Thanks for any help.