Skip to content

Curl vs. reqwest #3370

Answered by jcamiel
ralph-bergmann asked this question in General
Discussion options

You must be logged in to vote

Hi,

When we started coding Hurl (years ago before going open source on GitHub), we played with reqwest as the underlying HTTP engine.
We encountered an HTTP server that was sending a localized reason phrase, ie "200 succès" instead of "200 OK", something like:

HTTP/1.1 200 Succès
Connection: close
Content-Length: 7
Content-Type: text/html; charset=utf-8
Date: Tue, 05 Nov 2024 09:15:53 GMT

Searching for it, Tomcat 8.x used to respond with a response phrase and we encoutered instances where this reason phrase was localized...

At the time, the Rust component was panicking on this HTTP response, while curl happily returned the response without blicking. We realized the benefit of having a su…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ralph-bergmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants