getparty icon indicating copy to clipboard operation
getparty copied to clipboard

[Feature Request] Proxy Support

Open chromer030 opened this issue 4 years ago • 6 comments

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.

chromer030 avatar Jan 06 '22 18:01 chromer030

Not sure if I can implement this in a foreseeable future, nevertheless it is good feature to have. PR is welcome.

vbauerster avatar Jan 11 '22 06:01 vbauerster

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?

vbauerster avatar Jan 13 '22 16:01 vbauerster

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.

chromer030 avatar Jan 13 '22 17:01 chromer030

You can set env var per session like:

$ HTTP_PROXY="your_proxy_URL" getparty URL

vbauerster avatar Jan 13 '22 18:01 vbauerster

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  

chromer030 avatar Jan 13 '22 18:01 chromer030

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).

nwoodmsft avatar Apr 07 '22 22:04 nwoodmsft