curl -l的信息详解(这样还看不懂,就没天理了)

[root@jerry ~]# curl -I "http://www.baidu.com"
HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
Connection: Keep-Alive
Content-Length: 277
Content-Type: text/html
Date: Sat, 27 Oct 2018 06:37:09 GMT
Etag: "575e1f71-115"
Last-Modified: Mon, 13 Jun 2016 02:50:25 GMT
Pragma: no-cache
Server: bfe/1.0.8.18

HTTP/1.1 200 OK:HTTP/1.1表示协议版本  200表示成功  OK状态信息

Accept-Ranges: bytes
Accept:接受
Ranges:范围
bytes:字节

Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
Cache:缓存
Control:控制
private:私有的
store:贮存,存储
proxy-revalidate:使代理重新生效
proxy:代理
revalidate:使重新生效
transform:改变

Connection: Keep-Alive
Connection:连接
Keep-Alive:保持活力
Keep:保持
Alive:活力

Content-Length: 277
Content-Length:内容长度
Content:内容
Length:长度

Content-Type: text/html
Content-Type:内容类型
Type:类型
text:文本
html:HTML

Date: Sat, 27 Oct 2018 06:37:09 GMT
Date:时间
Sat:星期六
GMT:格林尼治时间

Etag: "575e1f71-115"
Etag:被请求变量的实体值

Last-Modified: Mon, 13 Jun 2016 02:50:25 GMT
Last:最后
Modified:改进的,修改
Mon:周一

Pragma: no-cache
Pragma:杂注;编译指示(通用首部字段,只用在客户端发送的请求中,要求中介服务器是否返回缓存资源)
cache:快速缓冲贮存区(缓存)

Server: bfe/1.0.8.18
Server:服务器

猜你喜欢

转载自blog.csdn.net/qq_41816540/article/details/83446535