curl -i, --include

-i, --include

curl www.baidu.com --include
-i参数可以显示http response的头信息,连同网页代码一起。

image.png

(HTTP) Include the HTTP-header in the output. The HTTP-header includes things like server-name, date of the document, HTTP-version and more...

你可能感兴趣的:(curl)