CURL command details, curl command

Source: Internet
Author: User

CURL command details, curl command

The curl command is a powerful network tool that can download and upload files through http or ftp. Among them, curl is far more than these functions. You can read the manual to get more information. 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, which can be used to capture pages, network Monitoring and other aspects of development, and curl commands can help solve problems encountered in the development process.

1. Common Parameters

There are many curl command parameters. Here we only list common parameters, especially those used in shell.

1.1-o and-O parameters Save the downloaded file to the specified file
  • Capture the page to a file
    [Root @ xi mytest] # curl-o home.html http://www.baidu.com-capture the first page to home.html
  • -O (uppercase) is used, and the following url must be specific to a file.
    [Root @ xi mytest] # curl-O http://www.baidu.com/img/bdlogo.gif

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.