1 保存http结果
curl -o page.html http://www.linuxidc.com
2设置代理
curl -x 123.45.67.89:1080 -o page.html http://www.linuxidc.com
3 自动填写用户名密码
curl -u name:passwd ftp://ip:port/path/file
4上传文件
curl -T localfile -u name:passwd ftp://upload_site:port/path/
5 提交数据
GET
curl http://www.linuxidc.com/login.cgi?user=nickwolfe&password=12345
POST
curl -d "user=nickwolfe&password=12345" http://www.linuxidc.com/login.cgi
6 使用证书
curl -E localcert.pem https://remote_server