Just use cURL

85 points by runxiyu


mdaniel

I see the satire tag, but this one triggers my PTSD:

So does cURL in a shell script with || and &&

I can't even count the number of times I've had to draw attention to missing -f (or --fail if you're kind to your future self) in just about every invocation I've ever seen of curl in a script. The alternative I've seen is -w %{http_code} (aka --write-out) but while that allows the caller to be more prescriptive about what, exactly, constitutes a failure I find it's usually more hassle than -f, and unquestionably so in most automation scripts