Oh this is fantastic. I had no idea curl could even do this sort of thing. Every time I think I have my head around everything curl can do, I am proven wrong. It really is an amazing tool that enables so many things.
curl is fantastic. There's also HTTPStat which provides a waterfall visualization on top of curl timings: <a href="https://github.com/reorx/httpstat">https://github.com/reorx/httpstat</a><p>There's also Skytrace (made by yours truly), which provides timing info as a waterfall visualization inspired by HTTPStat + lots more (syntax highlighting for responses, built-in JMESPath support, command-line assertions and checks etc) - <a href="https://github.com/artilleryio/artillery/tree/main/packages/skytrace#skytrace-ping">https://github.com/artilleryio/artillery/tree/main/packages/...</a>
Nit:<p>> Here is the same command written as a one-liner<p>Maybe don't include the "\n" in the triple-click selection so that one can inspect it before hitting enter. Currently it copies the "\n" to the clipboard and then when you paste in the terminal it directly executes.
great for doing measurements in a cron to later plot them. Here someone measured TLS version latencies on gov.uk - <a href="https://nooshu.com/blog/2020/07/30/measuring-tls-13-ipv4-ipv6-performance/" rel="nofollow noreferrer">https://nooshu.com/blog/2020/07/30/measuring-tls-13-ipv4-ipv...</a> and has a good graph explaining the time_* variables
curl is such an amazing tool. Most of my coworkers are not comfortable with the command line and prefer to use GUI tools like postman. Having curl as part of your shell's history is a minor super power.<p>What was that API end point that was failing 3 months ago with a weird status?<p>1. Hit C-r for reverse search (bonus if you've got fzf installed)
2. Type a partial URL
3. Identify the curl command you want, and hit enter.<p>I recently used timing support (as described in the article). I actually found it in AWS docs when I was trying to understand why things weren't as fast as expected. Now it's in permanent record in my shell.<p>Anyway, +1 for curl.