Basic use of the Curl command

Source: Internet
Author: User
Tags http post

Basic use of the Curl command

Yun Zhengjie

Copyright Notice: Original works, declined reprint! Otherwise, the legal liability will be investigated.

Curl is a file transfer tool that works in command-line mode based on URL syntax, which supports protocols such as Ftp,ftps,http,https,gopher,telnet,dict,file and LDAP. Curl supports HTTPS authentication, and supports methods such as HTTP Post,put, FTP upload, Kerberos authentication, HTTP upload, proxy server, cookies, username/password authentication, uploading files via HTTP proxy server to FTP server, etc. Features are very powerful. A. Common options for Curl:
1-a/--user-agent <string>set the user agent to send to the server, that is, tell the server browser why2-Basic authentication using HTTP3--tcp-Nodelay using the tcp_nodelay option4-e/--referer <URL>source URL, jump over the URL5--cacert <file>Specify CA certificate (SSL)6--compressed requirements Return is a compressed situation, if the file itself is a compressed file, you can download to the local7-h/--header <line>Custom header information is passed to the server8-i/--Headonly the response message header information is displayed9--limit-rate <rate>Set transfer speedTen-u/--user <user[:p assword]>set the user and password for the server One-0/--HTTP1.0Using HTTP1.0

Basic use of the 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.