Live data from Hacker News

HTTPie: A cURL-like tool for humans

github.com

81–88 of 88 posts

Re: HTTPie: A cURL-like tool for humans

#81
post #11

The UI for curl is awful (--request to change the method??) and wget's is only slightly better, but they do have the advantage of ubiquity, and it's often useful to email/Skype complete curl or wget command lines about the place to explain how to use an API, or demonstrate problems. (e.g. Stripe and others document their API in terms of curl commands: https://stripe.com/docs/api. ) I do wish the curl UI was better, b…

You can also change the request method with -X.

Re: HTTPie: A cURL-like tool for humans

#83
post #77
post #76

This is a good tool. I wish there's an editor-integrated interactive http tool. OT: Is there an Emacs package that can do interactive invocation of http? Like having a text buffer to hold all the urls. Hitting Ctrl-E on a url to invoke it, and display the http response headers and result on separate buffers.

OT: You just pretty much summed up restclient.el - https://github.com/pashky/restclient.el

That's fantastic. Thanks for the find. Emacs once again delivers.

Re: HTTPie: A cURL-like tool for humans

#84
post #56

Everything on HN is just "hey, learn to use this complicated complex thing - in just 30 minutes! You'll be so productive with all your creative startups!" "Learn VIM essentials in this blog post!" "Never bother reading 'man curl'!" "Learn the basics of C in three easy steps!" Sometimes HN feels like a lifestyle magazine for people who dream of being PG. EDIT: Don't get me wrong, I too dream of having the same succes…

Also not sure what your complaint is. Working at the right level of abstraction is fundamental to being a good engineer.

There is no criticism really, I agree with you. But was just feeling uneasy and vented it. I welcome downvotes to my GP comment.

Re: HTTPie: A cURL-like tool for humans

#85
post #56

Everything on HN is just "hey, learn to use this complicated complex thing - in just 30 minutes! You'll be so productive with all your creative startups!" "Learn VIM essentials in this blog post!" "Never bother reading 'man curl'!" "Learn the basics of C in three easy steps!" Sometimes HN feels like a lifestyle magazine for people who dream of being PG. EDIT: Don't get me wrong, I too dream of having the same succes…

What's your criticism exactly? What kind of content would you personally like to see more of?

None, merely an uneasy feeling. If you ask me personnaly, I really enjoy articles about something technically extraordinary that OP made/wrote about, amongst other things.

Re: HTTPie: A cURL-like tool for humans

#86
post #62

Earlier quoted context omitted.

Do you have a link to the report? I'd be interested to read the discussion.

No. I will be following up on this, if you send me an email (in my profile) I'll try to let you know when an analysis is available.

FYI, the `email` field in your profile is not publicly visible. If you want other people to be able to email you, you need to put it in your `about` text.

Re: HTTPie: A cURL-like tool for humans

#87
post #24

Earlier quoted context omitted.

There is more to it than that. It provides an expressive syntax to construct all sorts of requests. You can submit forms, upload files and set headers without having to use flags. You also get syntax highlighting, ability to pipe in request data, etc. If you are sending complex JSON, it's probably stored in a file or it's the output of another program: http PUT httpbin.org/put @/data/test.json http -b localhost:8888/…

I don't really think curl is much harder, e.g. curl -X PUT -d @data/test.json httpbin.org/put It also has the advantage that it supports all the options you might ever need, for example http authentication and proxies are often useful.

It has the disadvantage that it's not at all obvious what it does unless I open up the man page.

Re: HTTPie: A cURL-like tool for humans

#88

Earlier quoted context omitted.

It is possible to have another tool become ubiquitous (and in this case, it really would be for the best to have another tool become ubiquitous). In order to do that, though, you have to have a better tool, so this is a great start to making that happen.

Curl after all mostly replaced the earlier wget.

Except wget -r, which is still widely used and has no equivalent functionality in curl.
Post reply on HN