Cookie
Cookie 检查、设置(支持所有属性)、删除,以及基于 Cookie 的登录会话流程。
你的账号已解锁这些端点。在每个端点的页面上用 Try it 发送请求。
- GET
https://api.testingapis.com/api/cookiesReturns the cookies the client sentReturns the cookies the client sent. - GETDELETE
https://api.testingapis.com/api/cookies/deleteDeletes cookies by name, or every cookie the client sentDeletes cookies by name, or every cookie the client sent. - POST
https://api.testingapis.com/api/cookies/loginLogs in and sets the apibee_session cookieLogs in and sets theapibee_sessioncookie. - POST
https://api.testingapis.com/api/cookies/logoutEnds the session and expires the session cookieEnds the session and expires the session cookie. - GET
https://api.testingapis.com/api/cookies/meReturns the profile of the user who owns the session cookieReturns the profile of the user who owns the session cookie. - GET
https://api.testingapis.com/api/cookies/setSets one cookie per query parameterSets one cookie per query parameter. - GET
https://api.testingapis.com/api/cookies/set/{name}/{value}Sets one cookie with explicit attributesSets one cookie with explicit attributes.
请求示例
Returns the cookies the client sent. 完整参考和 Send 按钮(英文).
cURL
curl -X GET "https://api.testingapis.com/api/cookies"响应 · 200 OK
{"count": 0, "cookies": {}}