mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-30 06:24:44 +03:00
daa5e5ebd4
This update solves security issue but bumps HTTP Flask version from HTTP/1.0 to HTTP/1.1.
22 lines
451 B
Plaintext
22 lines
451 B
Plaintext
GET http://localhost:8000/assert-status-code
|
|
HTTP 201
|
|
|
|
# Assert HTTP 1.1
|
|
GET http://localhost:8000/assert-status-code
|
|
HTTP/1.1 201
|
|
|
|
# Simply check that the status code is not 200
|
|
# Do not run implicit assert of HTTP response version and code
|
|
GET http://localhost:8000/assert-status-code
|
|
HTTP *
|
|
[Asserts]
|
|
status != 200
|
|
|
|
|
|
# Simply check that the status code is OK
|
|
GET http://localhost:8000/assert-status-code
|
|
HTTP *
|
|
[Asserts]
|
|
status >= 200
|
|
status < 300
|