2020-08-27 10:07:46 +03:00
|
|
|
# Request Cookie
|
|
|
|
|
|
|
|
GET http://localhost:8000/cookies/set-request-cookie1-valueA
|
|
|
|
[Cookies]
|
|
|
|
cookie1: valueA
|
|
|
|
HTTP/1.0 200
|
|
|
|
|
2020-09-23 15:51:54 +03:00
|
|
|
# The cookie is not added in the cookie storage
|
|
|
|
GET http://localhost:8000/cookies/assert-that-cookie1-is-not-in-session
|
|
|
|
HTTP/1.0 200
|
2020-08-27 10:07:46 +03:00
|
|
|
|
2020-10-22 11:10:54 +03:00
|
|
|
GET http://localhost:8000/cookies/set-multiple-request-cookies
|
|
|
|
[Cookies]
|
|
|
|
user1: Bob
|
|
|
|
user2: Bill
|
|
|
|
HTTP/1.0 200
|
2020-08-27 10:07:46 +03:00
|
|
|
|
|
|
|
|
|
|
|
# Session Cookie
|
|
|
|
|
|
|
|
GET http://localhost:8000/cookies/set-session-cookie2-valueA
|
|
|
|
HTTP/1.0 200
|
|
|
|
[Asserts]
|
|
|
|
cookie "cookie2" equals "valueA"
|
|
|
|
|
|
|
|
GET http://localhost:8000/cookies/assert-that-cookie2-is-valueA
|
|
|
|
HTTP/1.0 200
|
|
|
|
|
2020-09-23 15:51:54 +03:00
|
|
|
GET http://localhost:8000/cookies/assert-that-cookie2-is-valueA-and-valueB
|
2020-08-27 10:07:46 +03:00
|
|
|
[Cookies]
|
2021-05-14 20:31:18 +03:00
|
|
|
cookie2: valueB
|
2020-08-27 10:07:46 +03:00
|
|
|
HTTP/1.0 200
|
|
|
|
|
|
|
|
|
|
|
|
GET http://localhost:8000/cookies/delete-cookie2
|
|
|
|
HTTP/1.0 200
|
|
|
|
[Asserts]
|
2020-09-23 15:51:54 +03:00
|
|
|
cookie "cookie2" equals ""
|
|
|
|
cookie "cookie2[Max-Age]" equals 0
|
2020-08-27 10:07:46 +03:00
|
|
|
|
2020-09-23 15:51:54 +03:00
|
|
|
GET http://localhost:8000/cookies/assert-that-cookie2-is-not-in-session
|
|
|
|
HTTP/1.0 200
|
2020-08-27 10:07:46 +03:00
|
|
|
|
|
|
|
GET http://localhost:8000/cookies/set
|
|
|
|
HTTP/1.0 200
|
|
|
|
Set-Cookie: LSID=DQAAAKEaem_vYg; Expires=Wed, 13 Jan 2021 22:23:01 GMT; Secure; HttpOnly; Path=/accounts
|
2020-08-28 15:27:18 +03:00
|
|
|
Set-Cookie: HSID=AYQEVnDKrdst; Domain=.localhost; Expires=Wed, 13 Jan 2021 22:23:01 GMT; HttpOnly; Path=/
|
|
|
|
Set-Cookie: SSID=Ap4PGTEq; Domain=.localhost; Expires=Wed, 13 Jan 2021 22:23:01 GMT; Secure; HttpOnly; Path=/
|
2020-08-27 10:07:46 +03:00
|
|
|
|
|
|
|
[Asserts]
|
2021-06-26 11:00:23 +03:00
|
|
|
header "Set-Cookie" count == 3
|
2020-08-27 10:07:46 +03:00
|
|
|
cookie "LSID" equals "DQAAAKEaem_vYg"
|
|
|
|
cookie "LSID[Value]" equals "DQAAAKEaem_vYg"
|
|
|
|
cookie "LSID[Expires]" exists
|
|
|
|
cookie "LSID[Expires]" equals "Wed, 13 Jan 2021 22:23:01 GMT"
|
|
|
|
cookie "LSID[Max-Age]" not exists
|
|
|
|
cookie "LSID[Domain]" not exists
|
|
|
|
cookie "LSID[Path]" equals "/accounts"
|
2020-09-22 09:34:20 +03:00
|
|
|
cookie "LSID[Secure]" exists
|
|
|
|
cookie "LSID[HttpOnly]" exists
|
2020-08-27 10:07:46 +03:00
|
|
|
cookie "LSID[SameSite]" not exists
|
2020-10-22 11:10:54 +03:00
|
|
|
|
|
|
|
|