Back to Hurl

Sections

integration/hurlfmt/tests_export/sections.html

8.0.1720 B
Original Source
hurl
GET http://localhost:8000/hello
[QueryStringParams]
order: newest
search: {{custom-search}}
count: 100
[BasicAuth]
bob: secret
[FormParams]
default: false
token: {{token}}
email: [email protected]
number: 33611223344
[MultipartFormData]
field1: value1
field2: file,example.txt;
field3: file,example.zip; application/zip
[Cookies]
theme: light
sessionToken: abc123
[Options]
verbose: true
HTTP 200
[Captures]
count: jsonpath "$.count"
[Asserts]
variable "count" == 1

`Hello World!`

# Empty sections
GET http://localhost:8000/hello
[QueryStringParams]
# FIXME: [BasicAuth] section can't be empty
#[BasicAuth]
[FormParams]
[MultipartFormData]
[Cookies]
[Options]
HTTP 200
[Captures]
[Asserts]
`Hello World!`