Linux Command Learning-curl

Source: Internet
Author: User

Role

Curl is a powerful web tool that uses URL syntax that you can use to upload and download files.

Curl http://www.cnblogs.com

The appeal command can print the page content to the screen.

Common parameters

-O: Save the file in a file of the specified name

-O: Save the file name of the total address default to local

#将lizi. zip download to local and save Q 1. Zip  1. Zip http://www.cnblogs.com/attachs/lizi.zip-O http://  Www.cnblogs.com/attach/lizhi.zip

Of course you can also get multiple files simultaneously

Curl-o http://http://www.cnblogs.com/attach/2.zip

-L: Force redirection. In general, when a requested page is moved to another site, a redirect request is sent and the new address is re-requested, and curl does not send a redirect request by default. For example, when accessing google.com, it is automatically redirected to google.com.hk (but neither of these goods can be reached now).

Curl-l www.google.com

-C can use the breakpoint continuation function for large files, such as:

-O www.cnblogs.com/attach/1. Zip ##########                    percent#当文件进度60% When the process ends, through-C-o www.cnblogs.com/attach/1. Zip

Linux Command Learning-curl

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.