wenzg@localhost:~/local/work/tengyue$ curl http://www.baidu.com -I
HTTP/1.1 200 OK
Server: bfe/1.0.8.18
Date: Tue, 05 Dec 2017 09:42:27 GMT
Content-Type: text/html
Content-Length: 277
Last-Modified: Mon, 13 Jun 2016 02:50:08 GMT
Connection: Keep-Alive
ETag: “575e1f60-115″
Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
Pragma: no-cache
Accept-Ranges: bytes
查看响应头和body
curl -v http://baidu.com