3 ms·
I know you said “by default” so I’m assuming you know some ways around this, but in case you don’t, or for anyone who might find this useful … you can be really
by j33zusjuice 3y ago
I know you said “by default” so I’m assuming you know some ways around this, but in case you don’t, or for anyone who might find this useful … you can be really specific with curl outputs. It’s pretty sick.
curl -sS -w '%{http_code} %{http_version}' https://www.goog https://www.goog
le.com -o /dev/null
https://everything.curl.dev/usingcurl/verbose/writeout https://everything.curl.dev/usingcurl/verbose/writeout
I’ve only recently had to use curl’s features more in-depth, so I’m still fascinated by its potential.
- xp84 3y agoThanks! This sounds like a great tool for simple scripts where something like a quick response code (etc) would be useful to know. I'm imagining something like: Creating ticket... (200 OK)