下载web页面(指定端口)并存到本地指定文件:
curl -o local.html http://www.weirdserver.com:8000/
下载FTP服务器文件:
curl ftp://ftp.funet.fi/README
获得FTP服务器文件列表:
curl ftp://cool.haxx.se/
一次下载多个文档:
curl ftp://cool.haxx.se/ http://www.weirdserver.com:8000/
通过SSH从ftps服务器下载文档:
curl -u username sftp://shell.example.com/etc/issue
UPLOAD FILE
上传文件到FTP:
curl -T uploadfile -u user:passwd ftp://ftp.upload.com/myfile
HTTP-POST
POST连个字段name和phone(POST的值必须urlencoded,像下面这样)
curl -d "name=Rafael%20Sagula&phone=3320780" http://www.where.com/guest.cgi