Cookies
Cookie-Inspektion, Setzen (mit jedem Attribut), Löschen und ein Login-Ablauf mit Cookie-basierter Session.
Dein Konto schaltet diese Endpunkte frei. Nutze Try it auf der Seite jedes Endpunkts, um Requests zu senden.
Diese Endpunkte brauchen ein kostenloses Konto. Leg eins an oder melde dich an, um ihre Details zu sehen und sie hier auszuprobieren.
- 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.
Beispiel-Request
Returns the cookies the client sent. Vollständige Referenz und Send-Button (auf Englisch).
cURL
curl -X GET "https://api.testingapis.com/api/cookies"Antwort · 200 OK
{"count": 0, "cookies": {}}Melde dich an, um die Details zu sehen
Die Parameter, die Beispiele für Request und Antwort und das Live-Panel Try it für diese Endpunkte sind für angemeldete Mitglieder. Konten sind kostenlos und in wenigen Sekunden angelegt.