3 ms·
You 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 .
by Wicher 3y ago
You 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)