ToolHub
中文
Light
GitHub
返回首页
/
开发编程
/
HTTP Header / Cookie 解析
加载中...
Header / Cookie 输入
Host: example.com Accept: application/json Cookie: session=abc123; theme=dark; lang=zh-CN Set-Cookie: session=xyz; Path=/; HttpOnly; Secure; SameSite=Lax
Headers JSON
复制
{ "startLine": "", "headers": { "Host": "example.com", "Accept": "application/json", "Cookie": "session=abc123; theme=dark; lang=zh-CN", "Set-Cookie": "session=xyz; Path=/; HttpOnly; Secure; SameSite=Lax" } }
Cookie / Set-Cookie JSON
复制
{ "cookies": { "session": "abc123", "theme": "dark", "lang": "zh-CN" }, "setCookies": [ { "name": "session", "value": "xyz", "attributes": { "Path": "/", "HttpOnly": true, "Secure": true, "SameSite": "Lax" } } ], "mergedCookie": "session=abc123; theme=dark; lang=zh-CN" }
fetch Headers
复制
const headers = { "Host": "example.com", "Accept": "application/json", "Cookie": "session=abc123; theme=dark; lang=zh-CN", "Set-Cookie": "session=xyz; Path=/; HttpOnly; Secure; SameSite=Lax" };