2022-12-04 20:27:03 +03:00
< pre > < code class = "language-hurl" > < span class = "hurl-entry" > < span class = "request" > < span class = "line" > < / span > < span class = "comment" > # This Hurl file begins with a BOM marker.< / span >
< span class = "line" > < / span > < span class = "comment" > # You can check it with 'hexdump -c bom.hurl'< / span >
< span class = "line" > < span class = "method" > GET< / span > < span class = "url" > http://localhost:8000/utf8_bom< / span > < / span >
2021-09-21 07:36:53 +03:00
< / span > < span class = "response" > < span class = "line" > < / span >
2022-11-11 16:25:00 +03:00
< span class = "line" > < span class = "version" > HTTP< / span > < span class = "number" > 200< / span > < / span >
2022-12-02 22:50:27 +03:00
< span class = "line" > < span class = "string" > `Hello World!`< / span > < / span >
2022-12-04 20:27:03 +03:00
< / span > < / span > < span class = "hurl-entry" > < span class = "request" > < span class = "line" > < / span >
< span class = "line" > < / span > < span class = "comment" > # We send the content of this file and get back the same< / span >
< span class = "line" > < / span > < span class = "comment" > # bytes from /mirror to test the presence of the BOM marker.< / span >
< span class = "line" > < span class = "method" > POST< / span > < span class = "url" > http://localhost:8000/mirror< / span > < / span >
< span class = "line" > file,< span class = "filename" > bom.hurl< / span > ;< / span >
< / span > < span class = "response" > < span class = "line" > < / span >
< span class = "line" > < span class = "version" > HTTP< / span > < span class = "number" > 200< / span > < / span >
2023-04-11 18:28:28 +03:00
< span class = "line" > < span class = "section-header" > [Asserts]< / span > < / span >
2022-12-04 20:27:03 +03:00
< span class = "line" > < span class = "query-type" > bytes< / span > < span class = "predicate-type" > startsWith< / span > hex,< span class = "hex" > efbbbf< / span > ;< / span >
< / span > < / span > < / code > < / pre >