I've been using HTTPie a lot more recently. It really takes the tedium out of using curl and I can produce color coded output for people. However, I am still finding myself in situations where I can't figure out how to induce the correct request. In other words, the user friendliness of being able to do things like construct JSON from parameters is great until it isn't. Is there anything similar for GUI users? The st…
If you are on OS X, you should try Paw [0]. It's like Postman but with native GUI and lots of options. I use it everyday. [0] https://luckymarmot.com/paw
HTTPie: a CLI, cURL-like tool for humans
31–40 of 53 posts
Re: HTTPie: a CLI, cURL-like tool for humans
#32I still tend to go back to cURL when I want to see exactly what's been received, and use httpie for when I know the response headers and body serialization are fine and I want to see the data therein.
Re: HTTPie: a CLI, cURL-like tool for humans
#33I've been using HTTPie a lot more recently. It really takes the tedium out of using curl and I can produce color coded output for people. However, I am still finding myself in situations where I can't figure out how to induce the correct request. In other words, the user friendliness of being able to do things like construct JSON from parameters is great until it isn't. Is there anything similar for GUI users? The st…
Re: HTTPie: a CLI, cURL-like tool for humans
#34Re: HTTPie: a CLI, cURL-like tool for humans
#35Earlier quoted context omitted.
I think I understand what you're saying, but all it would be is a change of ownership/packaging. httpie is only an interface to lower level libraries which already exist (requests and therefore urllib3). Whether it's an interface to requests or to libcurl matters fairly little. It'd be quite a drag if it were to libcurl in fact because syntax highlighting would be a lot harder, for example.
"all it would be" is a gigantic wealth of new functionality that requests/urllib3 does not have (compare libcurl and urllib3 features), along with greater support, developer base, test coverage, user base, and lower tco. httpie gains a wealth of advantages and cURL gets syntax highlighting. It's hard to overstate how advantageous to httpie it would be.
You don't simplify things by going from one popular lib to another, especially when they both have legitimate use cases. Requests is one of Python's most highly regarded libs and a very popular one at that. Httpie is not its only user.
And what you are describing is not a simple process. Gaining tests and features (what features anyway?) is not good enough for it.
Re: HTTPie: a CLI, cURL-like tool for humans
#36I've been using HTTPie a lot more recently. It really takes the tedium out of using curl and I can produce color coded output for people. However, I am still finding myself in situations where I can't figure out how to induce the correct request. In other words, the user friendliness of being able to do things like construct JSON from parameters is great until it isn't. Is there anything similar for GUI users? The st…
Re: HTTPie: a CLI, cURL-like tool for humans
#37Forgot to mention that when dealing with JSON APIs, httpie + jq is a killer combo. https://stedolan.github.io/jq/
Re: HTTPie: a CLI, cURL-like tool for humans
#38First off, I am really surprised how often this gets re-posted to HN. https://hn.algolia.com/?query=httpie&sort=byPopularity&prefi... I discovered HTTPie a few years back and it has completely replaced curl/wget during our API development and testing.
The concept of an HTTP CLI seems obvious to me in retrospect, but I'm not a web developer, so maybe there's a reason this isn't as useful it would seem at first glance?
Re: HTTPie: a CLI, cURL-like tool for humans
#39Forgot to mention that when dealing with JSON APIs, httpie + jq is a killer combo. https://stedolan.github.io/jq/
Reading the docs will probably make people feel all kinds of feelings. Especially the `last` part.
Re: HTTPie: a CLI, cURL-like tool for humans
#40Earlier quoted context omitted.
Reading the docs will probably make people feel all kinds of feelings. Especially the `last` part.
I don't understand. `echo '[1,2,3,4]' | jq last` seems pretty straightforward to me and so are the docs.