Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 请求头和响应头字段 #52

Open
Inchill opened this issue Nov 11, 2022 · 0 comments
Open

HTTP 请求头和响应头字段 #52

Inchill opened this issue Nov 11, 2022 · 0 comments

Comments

@Inchill
Copy link
Owner

Inchill commented Nov 11, 2022

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的情况

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant