Usage of the shell Artifact Curl Command Curl Usage instance notes

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.