Detailed description of Curl Command parameters in LinuxShell

Source: Internet
Author: User
Detailed description of Curl Command parameters in LinuxShell # Basic usage (with sed/awk/grep) # download and save # save through proxy # save
# Basic usage (with sed/awk/grep) $ curl http: // s.worthsee.com # download and save $ curl http://s.worthsee.com > Index.html $ curl-o index.html http://s.worthsee.com $ Curl-O http://s.worthsee.com /Target.tar.gz # use the proxy $ curl-x 123.45.67.89: 1080-o page.html http://s.worthsee.com # Save cookie $ curl-x 123.45.67.89: 1080-o page1.html-D cookie0001.txt http://s.worthsee.com # Use cookie $ curl-x 123.45.67.89: 1080-o page1.html-D cookie0002.txt-B cookie0001.txt http://s.worthsee.com # Simulate the browser $ curl-A "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"-x123.45.67.89: 1080-o page.html-D cookie0001.txt http://s.worthsee.com # Counterfeit referer $ curl-A "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"-x123.45.67.89: 1080-e "mail.worthsee.com"-o page.html-D cookie0001.txt http://s.worthsee.com # Loop download $ curl-O http://s.worthsee.com /~ Zzh/screen [1-10]. JPG # loop (matching) Download $ curl-O http://s.worthsee.com /~ {Zzh, nick}/[001-201]. JPG #> like zzh/001.JPG# # Download $ curl-o %2_%1.jpg in a loop (reference) http://s.worthsee.com /~ {Zzh, nick}/[001-201]. JPG # like> 0020.zzh.jpg # resumable Upload $ curl-c-O http://s.worthsee.com /~ Zzh/screen1.JPG # multipart download $ curl-r 0-10240-o "zhao. part1" http://s.worthsee.com /~ Zzh/zhao1.mp3 & \ $ curl-r 10241-20480-o "zhao. part1" http://s.worthsee.com /~ Zzh/zhao1.mp3 & \ $ curl-r 20481-40960-o "zhao. part1" http://s.worthsee.com /~ Zzh/zhao1.mp3 & \ $ curl-r 40961--o "zhao. part1" http://s.worthsee.com /~ Zzh/zhao1.mp3... $ cat zhao. part *> zhao.pdf # GET Upload $ curl http://www.worthsee.com/login.cgi?user=nickwolfe&password=12345##POST Upload $ curl-d "user = nickwolfe & password = 12345" http://www.worthsee.com/login.cgi##POST File upload $ curl-F upload = @ localfile-F btn_name = btn_value http://s.worthsee.com /~ Zzh/up_file.cgi

Related Article

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.