This help is for linux machines behind a FTP proxy.. (Note: Squid is not a true FTP Proxy server)
Say the proxy server is squid configured to be running on ' 192.168.0.10' Port '3128'
then some of the things we can do..
* List Files On FTP Server
curl --proxy 192.168.0.10:3128 ftp://qcd:onevision@sharethespace.com:21
* Download a file
curl -o STSServerInstaller.exe --proxy 192.168.0.10:3128 ftp://qcd:onevision@sharethespace.com:21/STSServerInstaller.exe
* Upload multiple files to the ftp server..
curl --upload-file "{rarlinux-3.6.0.tar.gz,vmlogo.xpm}" --verbose --proxy 192.168.0.10:3128 ftp://qcd:onevision@sharethespace.com:21
Note: We are uploading two files ie. rarlinux-3.6.0.tar.gz and vmlogo.xpm, similarly we can state more files, with a comma seperated list.
* We can also give the username/ password in options which is much safer than using it on the URL.
curl --upload-file "{rarlinux-3.6.0.tar.gz ,vmlogo.xpm}" --verbose --proxy 192.168.0.10:3128 -u qcd:onevision ftp://sharethespace.com:21
curl -o STSServerInstaller.exe --proxy 192.168.0.10:3128 -u qcd:onevision ftp://sharethespace.com:21/STSServerInstaller.exe
curl --proxy 192.168.0.10:3128 qcd:onevision ftp://sharethespace.com:21/path/to/file
CURL is a free GPL'ed Utility available on various platforms. in linux it comes by default.. in case its not there, please visit http://curl.haxx.se/download.html and download the version required for your platform. Windows Binary download is here
Note: The normal FTP client (Shell or ftp on dos prompt) does not work with ftp proxy servers.
Subscribe to:
Posts (Atom)
List directories via 'ls -d' - surprised me
List directories via 'ls -d' - surprised me This was one of those feelings where I was left surprised with the humble linux comm...
-
My search for a EWS way of fetching email came to a halt. An awesome software exists. DAVMAIL ! Awesome part is, it implements POP/IMAP/...
-
You want to have apps running in docker container. why? Its convenient, to upgrade and twea k the app independent of changes to your ow...
-
Thanjavur!!! Taken from wikipedia, The name came from the killing of daemon called Tanjan by 'Neelamegha Perumal' a form of Vishn...