It looks cool, but I don't really want to wait half a minute for it to do anything.<p><pre><code> $ time curl cs.marlboro.college
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://cs.marlboro.college /">here</a>.</p>
<hr>
<address>Apache/2.4.18 (Ubuntu) Server at cs.marlboro.college Port 80</address>
</body></html>
real 0m0.269s
user 0m0.004s
sys 0m0.005s
$ time http cs.marlboro.college
HTTP/1.1 301 Moved Permanently
Connection: Keep-Alive
Content-Length: 321
Content-Type: text/html; charset=iso-8859-1
Date: Sat, 27 Jan 2018 18:04:17 GMT
Keep-Alive: timeout=5, max=100
Location: https://cs.marlboro.college/
Server: Apache/2.4.18 (Ubuntu)
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://cs.marlboro.college/">here</a>.</p>
<hr>
<address>Apache/2.4.18 (Ubuntu) Server at cs.marlboro.college Port 80</address>
</body></html>
real 0m30.553s
user 0m0.437s
sys 0m0.052s</code></pre>
If you like httpie, http-prompt is a good add on for it, it lets you navigate through a rest API as if it is a filesystem (using cd for navigation), and lets you configure the arguments to pass to httpie for future requests.
Depending on what you are doing, Perl's LWP::Simple[1] and plain old wget[2] are sometimes handy.<p>[1] <a href="http://www.perlmonks.org/?node_id=168684" rel="nofollow">http://www.perlmonks.org/?node_id=168684</a><p>[2] <a href="http://www.editcorp.com/personal/lars_appel/wget/v1/wget_7.html" rel="nofollow">http://www.editcorp.com/personal/lars_appel/wget/v1/wget_7.h...</a>
I'm just starting to get into Python and using the command line more after a lifetime of mostly sticking to GUIs, and I'm really digging the "software for humans" vibe I'm finding in a few places. HTTPie is a good example, as is ncdu, which I just discovered this morning. Also anything by Kenneth Reitz.<p>The command line can be great for commanding, when it's done right, but it's not so great for most kinds of visualization, so CLI software that recognizes that and tries to compensate really helps.
I use httpie to view request and response headers. Very handy when you want to check something without worrying that a browser is caching something for some reason (like a redirect).<p><pre><code> $ http --print Hh http://news.ycombinator.com</code></pre>
HTTPie is awesome, the only thing to watch out for is if you use it for large JSON responses, it can take a while to parse, process and display the response. In that case cURL is still handier, but HTTPie is the tool I generally reach for
Could we all just agree to stop using the adjective “modern”? It’s such a weasal word. If there are advantages to your program, describe them. Simply being “newer” or in the currently trendy style does not make it automatically better.<p>I’m not saying that this is a bad project. But “modern” doesn’t tell me anything about why I might want to use it.