2022-10-09 17:30:07 +03:00
|
|
|
GET http://localhost:8000/redirected
|
2022-11-11 16:25:00 +03:00
|
|
|
|
|
|
|
HTTP 200
|
2022-10-16 10:35:54 +03:00
|
|
|
[Asserts]
|
|
|
|
url == "http://localhost:8000/redirected"
|
2022-12-02 22:50:27 +03:00
|
|
|
`Redirected`
|
2022-10-09 17:30:07 +03:00
|
|
|
|
|
|
|
|
|
|
|
# Absolute redirects
|
|
|
|
|
|
|
|
GET http://localhost:8000/redirect-absolute
|
2022-11-11 16:25:00 +03:00
|
|
|
HTTP 302
|
2020-08-27 10:07:46 +03:00
|
|
|
Location: http://localhost:8000/redirected
|
2022-10-16 10:35:54 +03:00
|
|
|
[Asserts]
|
|
|
|
url == "http://localhost:8000/redirect-absolute"
|
2020-08-27 10:07:46 +03:00
|
|
|
|
2022-11-11 16:25:00 +03:00
|
|
|
|
2022-10-09 17:30:07 +03:00
|
|
|
GET http://localhost:8000/redirect-absolute
|
|
|
|
[Options]
|
|
|
|
location: true
|
|
|
|
|
2022-11-11 16:25:00 +03:00
|
|
|
HTTP 200
|
2022-10-16 10:35:54 +03:00
|
|
|
[Asserts]
|
|
|
|
url == "http://localhost:8000/redirected"
|
2022-12-02 22:50:27 +03:00
|
|
|
`Redirected`
|
2020-08-27 10:07:46 +03:00
|
|
|
|
|
|
|
|
2022-10-09 17:30:07 +03:00
|
|
|
# Relative redirects
|
|
|
|
|
|
|
|
GET http://localhost:8000/redirect-relative
|
2022-11-11 16:25:00 +03:00
|
|
|
|
|
|
|
HTTP 302
|
2022-10-09 17:30:07 +03:00
|
|
|
Location: /redirected
|
2022-10-16 10:35:54 +03:00
|
|
|
[Asserts]
|
|
|
|
url == "http://localhost:8000/redirect-relative"
|
2022-10-09 17:30:07 +03:00
|
|
|
|
2022-11-11 16:25:00 +03:00
|
|
|
|
2022-10-09 17:30:07 +03:00
|
|
|
GET http://localhost:8000/redirect-relative
|
|
|
|
[Options]
|
|
|
|
location: true
|
|
|
|
|
2022-11-11 16:25:00 +03:00
|
|
|
HTTP 200
|
2022-10-16 10:35:54 +03:00
|
|
|
[Asserts]
|
|
|
|
url == "http://localhost:8000/redirected"
|
2022-12-02 22:50:27 +03:00
|
|
|
`Redirected`
|