Nov 21, 2009

How To Download/upload File Through A Ftp Proxy Server With 'curl'

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > How-To's and Tutorials > Internet > Internet Tools - Utilities - Hacks

How To Download/upload File Through A Ftp Proxy Server With 'curl'

saneax
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://xyz:mypass@sharethespace.com:21

* Download a file

curl -o STSServerInstaller.exe --proxy 192.168.0.10:3128 ftp://xyz:mypass@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://xyz:mypass@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 xyz:mypass ftp://sharethespace.com:21

curl -o STSServerInstaller.exe --proxy 192.168.0.10:3128 -u xyz:mypass ftp://sharethespace.com:21/STSServerInstaller.exe

curl --proxy 192.168.0.10:3128 xyz:mypass 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.

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.

 

 

 


Comment/Reply (w/o sign-up)

matthewk
This is a very nice tutorial; thanks smile.gif I've used the curl function in PHP before to grab data from another remote webpage. It's a cool function to be able to grab statistics that are often updated from another website and post information related to that data on your own website.

Comment/Reply (w/o sign-up)

rockershive
I changed my IP address using a proxy software. But hell the website I visited still identifies my true IP. Any help?

Comment/Reply (w/o sign-up)

J.C.
Thanks! Very nice tutorial!

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)


See Also,

*SIMILAR VIDEOS*
Searching Video's for download, upload, file, ftp, proxy, server, curl
advertisement



How To Download/upload File Through A Ftp Proxy Server With 'curl'

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com