curl
curl
CLI tool
Redirects
I often run into the issue of trying to remotely download a file (Github releases are a common example) but the known URL is not the actual endpoint for a file. Here you can use curl -JLO <url>
to ensure curl
follows the redirect(s) until it eventually gets to the target file.