/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Hurl: Run and test HTTP requests with plain text
(github.com)
460 points
flykespice
| 2 comments |
20 Jun 25 03:55 UTC
|
HN request time: 0.019s
|
source
1.
yoavm
◴[
20 Jun 25 12:26 UTC
]
No.
44327035
[source]
▶
>>44324592 (OP)
#
The one thing I never understood about the Hurl format is why the response status code assertion happens at the request section and not under the `[Asserts]` section. I wonder what the rationale behind that is.
replies(1):
>>44330914
#
ID:
GO
2.
jicea
◴[
20 Jun 25 19:07 UTC
]
No.
44330914
[source]
▶
>>44327035 (TP)
#
A simple GET with a status code is just
GET http://foo.com HTTP 200
You could write also
GET http://foo.com HTTP * [Asserts] status == 200
HTTP serves as a marker of the response section
↑