Curl Command, ELinks command

Source: Internet
Author: User

Introduced

  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 HTTP post, put and other methods, FTP upload, Kerberos authentication, HTTP upload, proxy server, cookies, username/password Authentication, download file breakpoint continuation, upload file breakpoint continuation, HTTP proxy Server pipeline (proxy tunneling), even it supports IPV6, SOCKS5 proxy server, upload files via HTTP proxy server to FTP server and so on, the function is very powerful.

Use

format: Curl [options] [URL ...] Common options for Curl:-a/--user-agent <string>set up the user agent to send to the server, define the client yourself--Basic uses HTTP Basic authentication, if you need to enter a password, you need the following options-u/--user <user[:p assword]>set the user and password for the server-e/--referer <URL>source URL, disguised as the page from which to jump to this page--cacert <file>CA Certificate (SSL), if the public key of HTTPS,CA is used to authenticate the public key of the server,--compressed request return is a compressed format, if the server supports, will return the compressed message, if not supported, then do not compress the message-h/--header <line>Custom HTTP header information is passed to the server, which is typically done by the client browser. The server is analyzed based on the client's header .-i/--Headonly the response message header information is displayed--limit-rate <rate>Set transfer speed-0/--HTTP1.0Using HTTP1.0-X,--request <command>: Custom Request method

-A test

client action [[email protected]~] #curl http://172.18.19.10/[[Email protected]~] #curl--user-agent IE6 http://172.18.19.10/#自己伪装成ie6浏览器进行访问server-side log files172.18.19.30- - [Ten/oct/ .: the: A: -+0800]"get/http/1.1"  $  + "-" "curl/7.29.0"172.18.19.30- - [Ten/oct/ .: the: the: -+0800]"get/http/1.1"  $  + "-" "IE6"

-E Test

client [[email protected]~] #curl--user-agent IE6--referer www.magedu.com http://172.18.19.10/#伪装成是从马哥网站跳转到这个访问页面的server-side log files172.18.19.30- - [Ten/oct/ .: the: A: the+0800]"get/http/1.1"  $  + "www.magedu.com" "IE6"

-I test

client action [[email protected]~] #curl--user-agent ie6-e www.magedu.com--Headhttp//172.18.19.10/http/1.1  $Okdate:mon,TenOct .  -: +: -Gmtserver:apache/2.2. the(CentOS) last-modified:sat, ,Oct . Geneva: -: -Gmtetag:"1c000a-15-53e5210613a2d"Accept-ranges:bytescontent-length: +Content-type:text/html; charset=utf-8

The ELinks command uses

Graphical interface of the browser

[[Email protected] ~] #elinks http://172.18.19.10

Show success

Curl Command, ELinks 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.