On Sun, Nov 20, 2022 at 7:09 PM Andrew Gregory <andrew.gregory.8@gmail.com> wrote:
On 11/20/22 at 06:43pm, Brian Geffon wrote:
Currently the only way to use a proxy is via XferCommand; however,
Not true; from man CURLOPT_PROXY:
I apologize, I stand corrected. Happy to reword the commit message to state that this allows the proxy to be configured at a system level. Otherwise I'm also happy to just withdraw the patch if that doesn't seem useful.
libcurl respects the proxy environment variables named http_proxy, ftp_proxy, sftp_proxy etc. If set, libcurl will use the specified proxy for that URL scheme. So for a "FTP://" URL, the ftp_proxy is considered. all_proxy is used if no protocol specific proxy was set.
when doing so there is no support for parallel downloads. This change introduces a new directive Proxy which supports whatever proxy protocols are supported by libcurl.
Thanks for looking, Brian