[Shell Study Notes] curl command summary, shell Study Notes curl

Source: Internet
Author: User

[Shell Study Notes] curl command summary, shell Study Notes curl
Wen si haihui
==============
CURL command Summary


1. Download
Curl-o [file name] www.baidu.com

2. Display HTTP request header information
Curl-I www.baidu.com

Show HTTP response header information
Curl-I www.baidu.com

3. display detailed communication process
Curl-v www.baidu.com

4. Send form information
4.1), GET method:
Curl example.com/add? A = 1 & B = 2
4.2), POST method:
Curl -- data "a = 1 & B = 2" www.test.com/add

5. HTTP Referer:
Curl -- referer http://www.hao123.com http://www.baidu.com


6. User Agent:
Curl -- user-agent "[User Agent]" www.baidu.com

7. Cookie:
Curl -- cookie "user = wusuopubupt" www.csdn.net

8. HTTP Header:

Curl -- header "Connection: keep-alive" www.csdn.net

============

Reference: http://www.ruanyifeng.com/blog/2011/09/curl.html




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.