Hu

Hurl, test APIs with plain text and libcurl

Hacker News

Hurl, test APIs with plain text and libcurl

Hi, We're happy to release a new version of Hurl [1]. Hurl is a command line tool powered by curl, that runs HTTP requests defined in a simple plain text format: # Get home: GET https://example.org HTTP/1.1 200 [Captures] csrf_token: xpath "string(//meta[@name='_csrf_token']/@content)" # Do login! POST https://example.org/login?user=toto&password=1234 X-CSRF-TOKEN: HTTP/1.1 302 Hurl can be used to get data like curl, or as an integration testing tool for JSON/XML HTTP apis / HTML content. Requests can be chained, and one can add asserts on response headers, cookies and body. For instance: GET https://example.org/order screencapability: low HTTP/1.1 200 [Asserts] jsonpath "$.validated" == true jsonpath "$.userInfo.lastName" == "Herbert" jsonpath "$.hasDevice" == false jsonpath "$.links" count == 12 jsonpath "$.order" matches /^order-\d{8}$/ You can see more samples in the documentation [2]. We've designed Hurl to be easily integrated in CI/CD (GitHub, GitLab), and its text format can be used as a documentation, commited in a repo etc... It's a single binary written in Rust, that is powered by libcurl under the hood, for a fast CLI tool for both devops and developers. In this new version, we've added the following improvements: - verbose output: add more color to Hurl --verbose output, and also added --very-verbose option to output request and response bodies - request options: command-line options such as --location (follow HTTP redirection), --verbose, --insecure etc... can now be applied to a particular request with an [Options] sections - and more, see here for a quick tout of 1.7.0 [3] [1] https://github.com/Orange-OpenSource/hurl [2] https://hurl.dev/docs/samples.html [3] https://hurl.dev/blog/2022/09/15/announcing-hurl-1.7.0.html Previous Show HN < https://news.ycombinator.com/item?id=28758226 > and < https://news.ycombinator.com/item?id=25655737 >

Share card

Actual performance

3points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
76%76% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: user, new, single · Missing: mac, agents, macos
70%70% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: io · Missing: https docs, excited, just released
69%69% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
38%38% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
33%33% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: sde · Missing: arr, mrr, revenue
15%15% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Te
Test APIs with YAML38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Test APIs with YAML

Hacker News3
Ca
Call and Test gRPC APIs45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Call and Test gRPC APIs

Hacker News2
En
Encrypt/Decrypt plain text POC58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Encrypt/Decrypt plain text POC

Hacker News3
ow
owo – OneNote to Plain Text62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

owo – OneNote to Plain Text

Hacker News83
Fr
Free Plain-Text Bookmarking69%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Free Plain-Text Bookmarking

Hacker News172
Te
Test APIs with just specification45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Test APIs with just specification

Hacker News3
Pl
Plain text for the web66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Plain text for the web

Hacker News151
I
I made my website plain text only63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I made my website plain text only

Hacker News5
Octrafic
Octrafic69%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Test your APIs in plain English, straight from the terminal

Product Hunt+128API
Te
Test APIs to your application37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Test APIs to your application

Hacker News1