January 24, 2008

Using cURL to download and upload

I just try to use cURL for download an upload, easy to use and better ftp command line interface. Here are some of examples

Downoad

curl -v -C - -o file.tar.gz http://www.yourname.com/website.tar.gz
curl http://name:password@www.yourname.com/website.tar.gz

Upload

curl -u user:password -v -C - -T file.tar.gz ftp://ftp.yourname.com

If you would like to learning more, please check this url. Except cURL, it have ncftp and Wget which also my fav.

Links
curl vs Wget

No comments: