The shell Artifact Curl command uses an example of the following:
# #基本用法 (with sed/awk/grep) $curl http://www.jquerycn.cn# #下载保存 $curl http://www.jquerycn.cn > Index.html$curl-o index.html http://www.jquerycn.cn$curl-O http://www.jquerycn.cn/target.tar.gz# #通过代理 $curl-X123.45.67.89: the-O page.html http://www.jquerycn.cn# #保存cookie $curl-X123.45.67.89: the-O page1.html-d cookie0001.txt http://www.jquerycn.cn# #使用cookie $curl-X123.45.67.89: the-o page1.html-d cookie0002.txt-b cookie0001.txt http://www.jquerycn.cn# #模仿浏览器 $curl-A"mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"-X123.45.67.89: the-O page.html-d cookie0001.txt http://www.jquerycn.cn# #伪造referer $curl-A"mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"-X123.45.67.89: the-E"mail.yahoo.com"-O page.html-d cookie0001.txt http://www.jquerycn.cn# #循环下载 $curl-O http://www.jquerycn.cn/~zzh/screen[1-10]. JPG# #循环 (match) Download $curl-O http://www.jquerycn.cn/~{zzh,nick}/[001-201]. JPG # >like Zzh/001.jpg# #循环 (citation) Download $curl-O #2_ #1. jpg http://www.jquerycn.cn/~{zzh,nick}/[001-201]. JPG # like >001_zzh.jpg# #断点续传 $curl-c-o http://Cgi2.tky.3wb.ne.jp/~zzh/screen1. JPG# #分块下载 $curl-R0-10240-O"Zhao.part1"http//Www.jquerycn.cn/~zzh/zhao1.mp3 &\$curl-R10241-20480-O"Zhao.part1"http//Www.jquerycn.cn/~zzh/zhao1.mp3 &\$curl-R20481-40960-O"Zhao.part1"http//Www.jquerycn.cn/~zzh/zhao1.mp3 &\$curl-R40961-O"Zhao.part1"http//Www.jquerycn.cn/~zzh/zhao1.mp3... $cat zhao.part* >Zhao.mp3 # #GET upload $curl http://www.yahoo.com/login.cgi?user=nickwolfe&password=12345# #POST Upload $curl-D"user=nickwolfe&password=12345"http//www.yahoo.com/login.cgi# #POST File upload $curl-F upload= $localfile-F $btn _name= $btn _value http://www.jquerycn.cn/~zzh/up_file.cgi
Usage of the shell Artifact Curl Command Curl Usage instance notes