fe-notes icon indicating copy to clipboard operation
fe-notes copied to clipboard

HTTP 请求头和响应头字段

Open Inchill opened this issue 3 years ago • 0 comments

Request header

Host :主机ip地址或域名 User-Agent :客户端相关信息,如果操作系统、浏览器等信息 Accept :指定客户瑞接收信息类型,如: image/jpg, text/html, application/json Accept-Charset :客户端接受的字符集,如Igb2312、1s0-8859-1 Accept -Encoding :可接受的内容编码,如gzip Accept - Language 接:受的语言,如Accept-Language :zh-cn Authorization :客户端提供给服务端,进行权限认证的信息 Cookie :携带的cookie信息 Referer :当前文档的URL,即从哪个链接过来的 Content-Type :请求体内容类型,如content-Type: application/x-ww- form-urlencoded Content - Length :缓存机制,如cache-Control :no-cache Cache -Control :缓存机制,如cache-Control :no-cache Pragma 防止页面被缓存,和ICache-Control:no-cache作用 -样

Response header

Server :HTTP服务器的软件信息 Date :响应报文的时间 Expires :指定缓存过期时间 Set-Cookie :种Cookie Last-Modified: 资源最后修改时间 Content-Type :响应的类型和字符集 Content-Length :内容长度 Connection :如Keep-Alive,表示保持tcp连接不关闭 Location 指明重定向的位置,新的URL地址, 如304的情况

Inchill avatar Nov 11 '22 08:11 Inchill