2.9-curl command

Source: Internet
Author: User

Curl Command to access the Web or download under Linux (similar to the wget feature)


Curl URL output site source can be saved to the specified file, with tools to browse

Curl -i URL only view page header information

Common website status codes are 200 301 302 404 403 502 503

/etc/hosts is the same as the Windows hosts, domain name resolution


Curl -x123.223.123.11:80 url-i-x Specify IP port to do HTTP proxy, and only output header information

Curl-iv Web Site View the process of visiting the website, information more detailed

Curl- u user name: password URL to access a website that requires a username and password


Curl-o Web site Download the file that points to

Curl- o wyp.log web site Download the file that the website points to, and rename it to Wyp.log


2.9-curl command

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.