How do I download the stand alone installer with curl?

On your website:

How do I install

https://github.com/brave/brave-browser/releases/download/v1.35.98/BraveBrowserStandaloneSetup.exe

with curl.

Firefox’s cliget say it is this way

curl --header ‘Host: objects.githubusercontent.com’ --user-agent ‘Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0’ --header ‘Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8’ --header ‘Accept-Language: en-US,en;q=0.5’ --referer ‘https://github.com/brave/brave-browser/releases/tag/v1.35.98’ --header ‘Upgrade-Insecure-Requests: 1’ --header ‘Sec-Fetch-Dest: document’ --header ‘Sec-Fetch-Mode: navigate’ --header ‘Sec-Fetch-Site: cross-site’ --header ‘Sec-Fetch-User: ?1’ ‘https://objects.githubusercontent.com/github-production-release-asset-2e65be/110178895/405e3b6a-cafd-4b5c-9586-d3055a9ad75c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220131%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220131T011732Z&X-Amz-Expires=300&X-Amz-Signature=f916521c8aa870eac516ea265c160982c4f64ad8d7f1acf681f057db7aced8cc&X-Amz-SignedHeaders=host&actor_id=843205&key_id=0&repo_id=110178895&response-content-disposition=attachment%3B%20filename%3DBraveBrowserStandaloneSetup.exe&response-content-type=application%2Foctet-stream’ --output ‘BraveBrowserStandaloneSetup.exe’

How do I figure out all that nonsense with curl?

Is there somewhere else to down the stand alone installer that is more curl friendly?

Many thanks,
-T

What is with all the cloak and dagger? This is open source after all.

And they changed their redirect method from yesterday to today.

Figured it out. I had one word out of place.

Bad:
$ curl --location ‘https://github.com/brave/brave-browser/releases/tag/v1.35.98/BraveBrowserStandaloneSetup.exe’ -o eraseme.exe

Good:
$ curl --location ‘https://github.com/brave/brave-browser/releases/download/v1.35.98/BraveBrowserStandaloneSetup.exe’ -o eraseme.exe

What is with all the cloak and dagger???

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.