curl -O http:www.lbing.top/index.html 下载到当前目录
curl -o ~/test.html http://www.lbing.top/index.html下载到家目录,并改名为test.html
curl -C - -O http://www.lbing.top/a.html 下载中断恢复
curl -O http://www.lbing.top/a.html -O http://www.lbing.top/b.html 下载多个文件
xargs -n 1 curl -O < wenjianlisturls.txt 从txt文件中的url列表下载文件
curl -I https://www.linuxidc.com 下载http头信息
curl --data "firstName=John&lastName=Doe" https://www.linuxidc.com/info.php 通过post请求发送参数
curl -u username:password -O ftp://ftpserver/linuxidc.tar.gz使用密码验证从ftp服务器上下载文件
curl --cookie-jar linuxidcookies.txt https://www.linuxidc.com/index.htm -O 存储网站cookie
curl --cookie cnncookies.txt https://www.linuxidc.com 发送网站cookie
curl --limit-rate 90K https://www.linuxidc.com/linuxidc.com.gz -O 限制下载速度
使用具有或不具有身份验证的代理。如果您是在proxy.yourdomain.com上侦听端口8080的代理服务器,请执行此操作。
curl -x proxy.linuxidc.com:8080 -U user:password -O http://linuxidc.com/linuxidc.com.tar.gz
curl用法简记
最新推荐文章于 2021-01-12 19:27:49 发布