HTTP请求头响应头速查表_Header对照表(搜索) - 52tool

📋 HTTP Header 速查表

请求头(Request Header)和响应头(Response Header)对照表。覆盖Content-Type、Authorization、CORS、Cache-Control等。支持搜索。

📤 请求头 (Request Headers)

Header说明示例
Accept客户端能接受的内容类型Accept: text/html, application/json
Accept-Encoding支持的压缩编码Accept-Encoding: gzip, deflate, br
Accept-Language偏好语言Accept-Language: zh-CN, en;q=0.9
Authorization认证凭证Authorization: Bearer eyJhbGc...
Cache-Control缓存策略Cache-Control: no-cache
CookieCookie数据Cookie: sessionId=abc123
Content-Type请求体类型Content-Type: application/json
Content-Length请求体大小Content-Length: 1024
Host目标主机Host: www.example.com
Origin请求来源(跨域)Origin: https://example.com
Referer来源页面URLReferer: https://example.com/page
User-Agent客户端信息User-Agent: Mozilla/5.0 ...
X-Requested-WithAJAX标识X-Requested-With: XMLHttpRequest
If-Modified-Since条件请求(缓存)If-Modified-Since: Wed, 21 Oct 2025 07:28:00 GMT
If-None-Match条件请求(ETag)If-None-Match: "abc123"

📥 响应头 (Response Headers)

Header说明示例
Access-Control-Allow-Origin允许跨域的来源Access-Control-Allow-Origin: *
Access-Control-Allow-Methods允许的HTTP方法Access-Control-Allow-Methods: GET, POST, PUT
Access-Control-Allow-Headers允许的请求头Access-Control-Allow-Headers: Content-Type
Cache-Control缓存策略Cache-Control: max-age=3600
Content-Disposition文件下载Content-Disposition: attachment; filename="file.pdf"
Content-Encoding压缩编码Content-Encoding: gzip
Content-Type响应体类型Content-Type: application/json; charset=utf-8
ETag资源版本标识ETag: "abc123"
Expires过期时间Expires: Wed, 21 Oct 2026 07:28:00 GMT
Last-Modified最后修改时间Last-Modified: Wed, 21 Oct 2025 07:28:00 GMT
Location重定向URLLocation: https://example.com/new
Server服务器信息Server: nginx/1.18.0
Set-Cookie设置CookieSet-Cookie: sessionId=abc123; HttpOnly; Secure
Strict-Transport-SecurityHSTS强制HTTPSStrict-Transport-Security: max-age=31536000
X-Content-Type-Options阻止MIME嗅探X-Content-Type-Options: nosniff
X-Frame-Options阻止点击劫持X-Frame-Options: DENY
X-XSS-ProtectionXSS过滤X-XSS-Protection: 1; mode=block

Content-Type常见值

text/html — HTML网页 | application/json — JSON数据 | application/x-www-form-urlencoded — 表单提交 | multipart/form-data — 文件上传 | text/plain — 纯文本 | application/xml — XML数据

CORS跨域相关Header

浏览器跨域请求时,服务器需要返回 Access-Control-Allow-Origin 头才能让浏览器接受响应。常见值:*(允许所有来源)、https://example.com(指定来源)。带Cookie的跨域需要 Access-Control-Allow-Credentials: true 且不能用*

❓ 常见问题

Q: HTTPHeader速查表是免费的吗?
A: 完全免费,无需注册登录,直接在浏览器中使用。所有数据在本地处理,不上传服务器。
Q: HTTPHeader速查表安全吗?数据会上传吗?
A: 安全。所有操作在浏览器本地完成,数据不离开你的设备,适合处理隐私文件。

👀 大家还在看

JSON格式化 AI对话 二维码生成 PDF压缩 个税计算 Base64编码 时间戳转换 今日运势 纪念日计算 复利计算 求职工具箱 全部工具 →
👉 下一步 🏆 看看周榜热门 🧩 工作流中心 🔍 全部工具分类

🔥 大家都在用 基于 9 月真实数据
📅
节假日倒计时
中秋/国庆/自定义
✏️
姓名字帖生成器
田字格·免费打印
🔑
JWT 在线解析
HS256/384/512 调试
💰
个税税率表 2026
七级累进·速算扣除
🔢
数字转大写
金额大写·发票/合同/支票填写必备