I use HTTPie when interacting with HTTP. Even in the simple case, http example.com, it adds syntax highlighting to the command-line output. And for API interaction, it requires memorizing fewer command-line flags: compare
HTTPie’s shorthand for JSON is real nice, but I love cURL. So I just hacked together jarg so that I could have that in my own scripts that have to shovel around JSON. You can tighten up the curl invoke a little more now:
If you don’t mind Python or another high-level language as a dependency, there are a lot of nice curl alternatives. Requiring only libc and being included in many base systems is one of many nice things about curl.
Amusingly, the whole article could’ve been shortened to, “It’s cat for URLs.”
What I wish, and that I think would be much more in keeping with curl’s otherwise fairly “minimalist” approach, would be to default to something like curl -sS – personally I find the progress indications (which are sent to stderr by default) are rarely anything but useless and distracting. The only other common tool I can think of offhand that does something similar is dd, which is hardly a model of how to write a command-line tool that integrates nicely with the rest of the world…
I use HTTPie when interacting with HTTP. Even in the simple case,
http example.com, it adds syntax highlighting to the command-line output. And for API interaction, it requires memorizing fewer command-line flags: compareto
HTTPie supports downloading a file with
http --download example.comtoo, though it’s not especially better thancurl -Ofor that use-case.HTTPie’s shorthand for JSON is real nice, but I love cURL. So I just hacked together jarg so that I could have that in my own scripts that have to shovel around JSON. You can tighten up the curl invoke a little more now:
HTTPie is also nice in setting the content type to JSON for you, it’s a pain in cURL. You can fix it with a quick alias though:
If you don’t mind Python or another high-level language as a dependency, there are a lot of nice curl alternatives. Requiring only libc and being included in many base systems is one of many nice things about curl.
Amusingly, the whole article could’ve been shortened to, “It’s cat for URLs.”
I just wish -L was on by default.
What I wish, and that I think would be much more in keeping with curl’s otherwise fairly “minimalist” approach, would be to default to something like
curl -sS– personally I find the progress indications (which are sent to stderr by default) are rarely anything but useless and distracting. The only other common tool I can think of offhand that does something similar isdd, which is hardly a model of how to write a command-line tool that integrates nicely with the rest of the world…