11 ms·
For me, I had a project full of test cases in Postman and one day I was connected to the internet it phoned home to update. After the update it said I needed an
by tmm84 3y ago
For me, I had a project full of test cases in Postman and one day I was connected to the internet it phoned home to update. After the update it said I needed an account (okay, use work email no big deal) after logging in it said all my test cases and collections were gone. From there it was shell scripts with curl for me.
- Wicher 3y agoYou may be able to replace some of your curl+shell with Hurl — https://hurl.dev/#also-an-http-test-tool https://hurl.dev/#also-an-http-test-tool .
- fao_ 3y agoWhy should someone bother to do this, if they already know and have a handle on cURL's syntax?
- rrr_oh_man 3y ago[flagged]
- Wicher 3y agoFrom the first three lines of the linked-to paragraph: > Hurl can run HTTP requests but can also be used to test HTTP responses. > Different types of queries and predicates are supported, from XPath and JSONPath on body response, to assert on status code and response headers.
- jicea 3y agoCompared to curl, you can: - chain requests passing data from a request to another, - add tests on every responses: body, headers, certificates, etc... You can use JSONPath or XPath for example, - there is some sugar syntax to construct request bodies (GraphQL body is annoying with curl, JSON etc...), - there is some sugar syntax for retrying requests on asserts, delaying requests etc.. Under the hood, Hurl uses libcurl so a lot of curl's options are exposed through Hurl (and we benefit of a lot of curl features like HTTP/3, IPV4/IPV6 etc... and speed and reliability of course!). (I'm one of the maintainers)