I have a file URL for a PDF that I want to download using Chrome.
wget is not an option, because Chrome is seemingly sending headers and cookies that I can't replicate. So what I need is to be able to run
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --download-file http://url.etc/...
Assuming that it would send the cookies it already has for the URL domain. I have tried
chrome-cli but there is no option to do something like this.
Functionally it is the same as opening a window in Chrome with the given URL, then right-clicking and hitting "Save as…". But I have a list of many PDFs that I need to download, so it has to be automated somehow.
EDIT: Meanwhile, found this.
EDIT #2: I'm not the only one! Link.