Cookies
Inspección de cookies, creación (con todos los atributos), borrado y un flujo de inicio de sesión basado en cookies.
Tu cuenta desbloquea estos endpoints. Usa Try it en la página de cada endpoint para enviar peticiones.
Estos endpoints necesitan una cuenta gratuita. Crea una o inicia sesión para ver sus detalles y probarlos aquí.
- 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.
Petición de ejemplo
Returns the cookies the client sent. Referencia completa y botón Send (en inglés).
cURL
curl -X GET "https://api.testingapis.com/api/cookies"Respuesta · 200 OK
{"count": 0, "cookies": {}}Inicia sesión para ver los detalles
Los parámetros, los ejemplos de petición y respuesta y el panel Try it en vivo de estos endpoints son para miembros con sesión iniciada. Las cuentas son gratuitas y se crean en unos segundos.