2 _RESETFUL介绍

2.2 CURL 命令的讲解:

1.就是以命令的方式来执行HTTP 协议的请求的工具

2.可以通过CURL 操作HTTP的GET/POST/PUT/DELETE方法

jrhmpt01:/root# curl -i www.baidu.com
HTTP/1.1 200 OK
Server: bfe/1.0.8.14
Date: Mon, 05 Sep 2016 13:43:17 GMT
Content-Type: text/html
Content-Length: 2381
Last-Modified: Mon, 25 Jul 2016 11:11:32 GMT
Connection: Keep-Alive
ETag: "5795f3e4-94d"
Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
Pragma: no-cache
Accept-Ranges: bytes


响应头:

 -i/--include       Include protocol headers in the output (H/F)

原文地址:https://www.cnblogs.com/zhaoyangjian724/p/6199248.html