获取环境 cookie
描述
获取指定浏览器环境的 Cookie 信息。
请求格式
请求方法:
GET
请求 URL
/api/getBrowserCookie
请求参数
参数名 | 类型 | 必填 | 描述 |
---|---|---|---|
id | int | 是 | 浏览器 ID |
请求示例
?id=1
响应示例
json
{
"success": true,
"data": {
"id": 1,
"name": "浏览器1",
"cookie": {
"mode": 1,
"value": "sessionId=abc123; userId=12345",
"jsonStr": "[{\"name\":\"sessionId\",\"value\":\"abc123\",\"domain\":\".example.com\"}]"
}
}
}
响应参数说明
参数名 | 类型 | 描述 |
---|---|---|
id | int | 浏览器 ID |
name | string | 浏览器名称 |
cookie.mode | int | Cookie 模式 |
cookie.value | string | Cookie 字符串值 |
cookie.jsonStr | string | Cookie JSON 格式 |