cURL
$ curl URL --silent
$ curl URL --silent -O
$ curl URL --silent -o new_filename
$ curl URL -o new_filename --progress
1.断点续传
$ curl -C -URL
2.设置参照页
$ curl --referer REFERER_URL TARGET_URL
3.设置cookie
$ curl URL --cookie "user=chenliujin;password=123456"
$ curl URL --cookie-jar cookie_file
4.设置user-agent
$ curl URL --user-agent "Mozilla/5.0"
5.其它头部
$ curl -H "Host: www.example.com" -H "Accept-language: en" URL
6.限定带宽
$ curl URL --limit-rate 20k
7.指定最大下载量
$ curl URL --max-filesize bytes
8.HTTP 或 FTP 认证
$ curl -u user:password URL
$ curl -u user URL
9.只输出响应头部信息
$ curl -I URL
$ curl -head URL