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…
HTTPie: A cURL-like tool for humans
81–88 of 88 posts
Re: HTTPie: A cURL-like tool for humans
#82Re: HTTPie: A cURL-like tool for humans
#83This 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
Re: HTTPie: A cURL-like tool for humans
#84Everything 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.
Re: HTTPie: A cURL-like tool for humans
#85Everything 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?
Re: HTTPie: A cURL-like tool for humans
#86Earlier 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.
Re: HTTPie: A cURL-like tool for humans
#87Earlier 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.
Re: HTTPie: A cURL-like tool for humans
#88Earlier 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.