Cookies
Inspection des cookies, création (avec tous les attributs), suppression et un parcours de connexion par session à base de cookies.
- GET
https://api.testingapis.com/api/cookiesReturns the cookies the client sent. - GETDELETE
https://api.testingapis.com/api/cookies/deleteDeletes cookies by name, or every cookie the client sent. - POST
https://api.testingapis.com/api/cookies/loginLogs in and sets theapibee_sessioncookie. - POST
https://api.testingapis.com/api/cookies/logoutEnds the session and expires the session cookie. - GET
https://api.testingapis.com/api/cookies/meReturns the profile of the user who owns the session cookie. - GET
https://api.testingapis.com/api/cookies/setSets one cookie per query parameter. - GET
https://api.testingapis.com/api/cookies/set/{name}/{value}Sets one cookie with explicit attributes.
Exemple de requête
Returns the cookies the client sent. Référence complète et bouton Send (en anglais).
cURL
curl -X GET "https://api.testingapis.com/api/cookies"Réponse · 200 OK
{"count": 0, "cookies": {}}