[Feature Request] Proxy Support
Proxy Support is sometimes essential for any download manager , especially when we are behind a firewall or Interanet network. Almost all of download managers support proxy like : curl, aria2, wget, etc. Please implement Socks5/HTTP/HTTPS proxy support. Thanks for developing this useful tool.
Not sure if I can implement this in a foreseeable future, nevertheless it is good feature to have. PR is welcome.
Actually there is ProxyFromEnvironment used by default. It means that you can export proxy via environment variable and it should be picked up automatically. Name of environment variable provided in the link above. Can you please check if it works for you?
Thank you for informing , i will check and report, but there is a problem and the matter that setting proxy via Environment variables will not be specific to a single tool and software and every supported tool, program and process which can use this variable will be affected by that. Best possible option is setting and using the proxy via internal arguments of tool not system-wide option.
You can set env var per session like:
$ HTTP_PROXY="your_proxy_URL" getparty URL
It's seems that it's working :
User@User ~/Desktop % HTTPS_PROXY="http://127.0.0.1:10809" ./getparty https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
2022/01/13 22:58:55 GET: https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
2022/01/13 22:58:58 HTTP response: 200 OK
Length: 89854380 (85.7MiB) [application/x-debian-package]
Saving to: "google-chrome-stable_current_amd64.deb"
P01:R02 85.7MiB 10.50% ======>------------------------------------------------------- 02:11 618.4KiB/s
I have used GetParty behind quite a few proxy deployments (ssl, non-ssl, unauthenticated, basic authentication, etc) and it has been working well. It honors the standard environment variables (HTTP_PROXY, HTTPS_PROXY, NO_PROXY).