Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
yoavm
11 months ago
|
parent
|
context
|
favorite
| on:
Hurl: Run and test HTTP requests with plain text
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.
jicea
11 months ago
[–]
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
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: