Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request]: Add an option for installers to set HTTP headers when downloading a file. #3722

Open
CaitlynWemyss opened this issue Jan 22, 2025 · 0 comments

Comments

@CaitlynWemyss
Copy link

Tell us the problem or your need

Some servers are stubborn, and will not allow files to be downloaded unless certain headers are included in the HTTP request. This would make it (maybe) possible to fix bottlesdevs/programs#337.

Describe the solution you'd like

The Steps item in the YAML could include an "http_headers" item, like so:

Steps:
- action: install_exe
  file_name: flstudio_win64_24.1.1.4239.exe
  url: https://install.image-line.com/flstudio/flstudio_win64_24.1.1.4239.exe
  http_headers:
  - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0"
  - "Accept-Language": "en-US,en;q=0.5"
  file_checksum: b96beab4069b9ce9137ca133fab5fff5
  arguments: ""

Other solutions?

No response

Additional context and references

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant