如何使用 HTTP 请求与响应头参考
- 在上方输入或选择需要处理的数据。
- 点击“搜索”执行操作。
- 检查结果,并在需要时复制、调整输入后重新执行。
HTTP 请求与响应头参考常见问题
这个工具会保存我的数据吗?
此工具的主要处理过程在你的浏览器中完成,viptool 不会上传或保存你输入的内容。
为什么结果可能与其他网站不同?
结果取决于输入格式、计算规则和数据更新时间。涉及实时数据时,请以页面标明的数据来源及其更新时间为准。
常用 HTTP 字段的简明参考。
| 数值 | 名称 | 说明 |
|---|---|---|
| Accept | Request | 客户端可接受的媒体类型。 |
| Accept-Encoding | Request | 客户端可接受的内容编码。 |
| Accept-Language | Request | 首选响应语言。 |
| Authorization | Request | 认证凭据。 |
| Cache-Control | General | 缓存指令。 |
| Content-Disposition | Representation | 内联或附件展示方式。 |
| Content-Encoding | Representation | 正文使用的编码。 |
| Content-Length | Representation | 正文的字节长度。 |
| Content-Type | Representation | 正文的媒体类型。 |
| Cookie | Request | 客户端发送的 Cookie。 |
| ETag | Response | 资源版本标识符。 |
| Host | Request | 目标主机和可选端口。 |
| If-None-Match | Request | 使用 ETag 的条件请求。 |
| Last-Modified | Response | 已知的最后修改时间。 |
| Location | Response | 重定向或新资源地址。 |
| Origin | Request | 发起请求的来源。 |
| Referer | Request | 来源页面地址。 |
| Retry-After | Response | 客户端应何时重试。 |
| Set-Cookie | Response | 创建或更新 Cookie。 |
| User-Agent | Request | 客户端软件标识。 |
| Vary | Response | 影响响应选择的请求字段。 |
| WWW-Authenticate | Response | 认证质询。 |
| X-Content-Type-Options | Security | 阻止 MIME 类型嗅探。 |
| Content-Security-Policy | Security | 限制允许的内容来源。 |
| Strict-Transport-Security | Security | 强制后续使用 HTTPS。 |
来源: IANA HTTP Field Name Registry复核日期: 2026-07-11
此工具的主要处理过程在你的浏览器中完成,viptool 不会上传或保存你输入的内容。
结果取决于输入格式、计算规则和数据更新时间。涉及实时数据时,请以页面标明的数据来源及其更新时间为准。