Linux Shell script programming-detailed explanation of curl commands

Source: Internet
Author: User

Linux Shell script programming-Detailed description of the curl command purpose curl command is a powerful network tool that can download files through http, ftp, and other methods, but also upload files. In fact, curl is far more than the functions mentioned above. You can read more information on the man curl manual page. Similar Tools include wget. The curl command is implemented using the libcurl library. The libcurl library is often used in C Programs to process HTTP requests. curlpp is a C ++ encapsulation of libcurl, these items can be used for web page capturing and network monitoring development. The curl command can help solve problems encountered during the development process. There are many common curl command parameters. Here we only list the parameters I have used, especially those used in shell scripts. -A: specify the information about your browser declared during this access-B/-- cookie <name = string/file> cookie string or file reading location, use option to append the cookie information to the http request. -C/-- cookie-jar <file> after the operation is complete, write the cookie to this file-C/-- continue-at <offset> resumable transfer-d/-- data <data> send data in http post mode-D/-- dump-header <file> write the header information to the file-F/-- form <name = content> simulate the http form to submit data- v/-- verbose lower-case v parameter, it is used to print more information, including the sent request information, which is particularly useful in debugging scripts. -M/-- max-time <seconds> specifies the maximum length of processing-H/-- header

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.