News for hackers. Stuff that matters.
Re:You cannot cURL under pressure by dijit on Saturday October 12, 2019 @09:39AM (#21233016)
curl follows redirects, `curl -O` is functionally identical to wget.

Unless I'm missing something in your statement.

Re:You cannot cURL under pressure by deepersprout on Saturday October 12, 2019 @09:45AM (#21233055)
> curl follows redirects, `curl -O` is functionally identical to wget.

No it's not :)

You need to `curl -LO`. See for example github releases:

  curl -LO https://github.com/S2-/gitlit/releases/download/v1.4.1/gitlit-1.4.1.tar.gz
downloads the tar.gz, while

  curl -O https://github.com/S2-/gitlit/releases/download/v1.4.1/gitlit-1.4.1.tar.gz
will download an html file.

Even better would be to use `curl -LOJ`, so if the filename is not in the url, but in the `Content-Disposition filename` http response header, curl would get the filename from there.

Re:You cannot cURL under pressure by tyingq on Saturday October 12, 2019 @10:03AM (#21233172)
Pretty good overview of why I just use wget for such things.
Re:You cannot cURL under pressure by tyingq on Saturday October 12, 2019 @10:01AM (#21233162)
"because I don't have to remember the curl option to follow redirects"
Re:You cannot cURL under pressure by swiley on Saturday October 12, 2019 @10:54AM (#21233600)
curl follows standard redirects but there are a couple of fairly common redirects that it doesn't.

--Someone who built a browser on libcurl