Live data from Hacker News

Hurl 4.0.0

hurl.dev

21–30 of 104 posts

Re: Hurl 4.0.0

#21
post #16

Great job to the team! Hurl is growing rapidly! One question if someone knows: while testing an endpoint, authentication is always needed. Having written the authentication in 1 file, how can I import this file at the beginning of every other file that requires authentication and the associated token?

It doesn't look like Hurl has any functionality for inclusions, macros, and the like. I'm not sure those would be the best way to store and use secrets anyway. But the docs say you can pass variables into hurl files via command line args and through the environment: https://hurl.dev/docs/templates.html

Re: Hurl 4.0.0

#22
post #10

Please make this the industry standard for testing APIs. I'm tired of having to look at Postman screenshots sent from QA. I'm tired of having to wait for them to press Send once I've implemented a fix. I know they're tired of waiting for me to do that, too. Hurl is something both the devs and QA can speak and write. It can be automated and a part of CI. It makes communicating expectations straightforward. It can be c…

Hi maintainer here! Thanks a lot for the kind words!

Re: Hurl 4.0.0

#23

> Hurl is a command line tool powered by curl, that runs HTTP requests defined in a simple plain text format: This is how every new version announcement should start! I'd never heard of Hurl before and that intro + code sample on top instantly made me want to install and try it out. Congrats on what seems like a great release

Hi, maintainer of Hurl and avid reader of Hacker News for years. I've noted every advice for presentations (put a sample of your language asap, explain your concept every time succinctly, etc...). I've tried to put it in practice on hurl.dev so thank you for noticing it!

Re: Hurl 4.0.0

#24

> Hurl is a command line tool powered by curl, that runs HTTP requests defined in a simple plain text format: This is how every new version announcement should start! I'd never heard of Hurl before and that intro + code sample on top instantly made me want to install and try it out. Congrats on what seems like a great release

Amen. Far too many announcements and readmes jump right into installation requirements and “we’ve fixed X, Y and Z” but never actually tell you what the thing is!

Re: Hurl 4.0.0

#25
Feedback: The homepage (https://hurl.dev/) doesn't really make it clear - is this an interactive tool or not?

If I understand it correctly, you're supposed to save that example as a file and run 'hurl example.hurl'. It would make it easier to understand if that sample code box had a headline saying e.g. [example.hurl].

Re: Hurl 4.0.0

#26
Is anybody else wary of a new grammar with no transformer available to/from anything more common (e.g. json/xml)?

I did find [this][1] tree-sitter parser, so that's a start, but it seems like writing these would be a lot easier to write these if the interface was a library in a general purpose language or a subset of json.

[1] https://github.com/pfeiferj/tree-sitter-hurl

Re: Hurl 4.0.0

#28
This is one of the best examples of a modern Unix program I have seen:

- It accepts input on stdin

- It sends output to stdout

- Does not appear to be littered with unicode emoji everywhere

- It comes with man pages (and pretty good ones too!)

- The hurl file extension is four characters long instead of three, thank goodness we're finally past MS-DOS compatibility concerns!

This looks like something I might take seriously.

Re: Hurl 4.0.0

#29
post #12
post #10

Please make this the industry standard for testing APIs. I'm tired of having to look at Postman screenshots sent from QA. I'm tired of having to wait for them to press Send once I've implemented a fix. I know they're tired of waiting for me to do that, too. Hurl is something both the devs and QA can speak and write. It can be automated and a part of CI. It makes communicating expectations straightforward. It can be c…

For a team using VSCode you can try the vscode-restclient[1] But really Hurl looks really interesting, being editor agnostic is the best solution for your problem, I agree. [1] https://github.com/Huachao/vscode-restclient

I use the vscode-restclient and my primary reason is the conversational flows you can build against an API. Does Hurl support this? If so I would absolutely switch. All I would need to complete the experience is a plugin to do highlighting and integration with the Hurl files.
Post reply on HN