I'm having a good deal of trouble getting curl or wget to download files from FTP servers through an FTP proxy. I have setup GUI FTP programs to work...
gFTP works with these settings:
I get output like below when just using curl/wget with the ftp_proxy variable set to the proxy hostname:
# curl -v ftp://ftp.astron.com/pub/file/file-5.05.tar.gz * About to connect() to proxy blah port 21 (#0) * Trying blah... connected * Connected to blah (blah) port 21 (#0) > GET ftp://ftp.astron.com/pub/file/file-5.05.tar.gz HTTP/1.1 > User-Agent: curl/7.19.0 (x86_64-suse-linux-gnu) libcurl/7.19.0 OpenSSL/0.9.8h zlib/1.2.3 libidn/1.10 > Host: ftp.astron.com:21 > Pragma: no-cache > Accept: */* > Proxy-Connection: Keep-Alive > 220- 220-Enter an Internet ftp address at the Name prompt. 220 Type help for usage information. 500 Syntax error, command unrecognized. 500 Syntax error, command unrecognized. 500 Syntax error, command unrecognized.
Is there some way I can configure the shell environment and/or curl/wget with the same settings as gFTP for passing through an FTP proxy?