Live data from Hacker News

HTTPie is a command line HTTP client, a user-friendly cURL replacement

httpie.org

1–10 of 79 posts

Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement

#3
Determining the type of an argument by looking up the presence of ':', '=', or '==' is brilliant. I liked it.

It can also be used to replace Wget, which not only breaks a multibyte filename sometimes, but also requires the --content-disposition option to handle the Content-Disposition header.

Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement

#4
I'd just wrap a simple program around curl to improve its argument passing complexity if that's your pain point but I wouldn't go on rewriting an HTTP client.

Curl is a very mature code base by now and that's something to appreciate. It handles all the edge cases well and has dealt with all the mess that you'll discover over time.

Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement

#6
post #2

At first I thought, what is so unfriendly about cURL? Then I saw the screenshot that shows a comparable cURL request behind the HTTPie request and I'm convinced.

That was my first thought, too. Then I saw the colorized output and I'm convinced, too.

Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement

#9
post #2

At first I thought, what is so unfriendly about cURL? Then I saw the screenshot that shows a comparable cURL request behind the HTTPie request and I'm convinced.

That was my first thought, too. Then I saw the colorized output and I'm convinced, too.

Isn't the HTTpie command simpler because it uses defaults for the content type and charset? If Curl did the same (not sure why it should because not everything is JSON/UTF-8), the command would be about as short as the HTTPie one.

Re: HTTPie is a command line HTTP client, a user-friendly cURL replacement

#10
post #4

I'd just wrap a simple program around curl to improve its argument passing complexity if that's your pain point but I wouldn't go on rewriting an HTTP client. Curl is a very mature code base by now and that's something to appreciate. It handles all the edge cases well and has dealt with all the mess that you'll discover over time.

httpie uses requests[0] under the hood, a well respected python HTT library. See https://github.com/jakubroztocil/httpie/blob/77955c9837259b1...
Post reply on HN