Buzz icon indicating copy to clipboard operation
Buzz copied to clipboard

Add support for system proxy in FileGetContents client

Open pimterry opened this issue 6 years ago • 0 comments

Buzz supports proxies when specified explicitly, but generally doesn't use the system-wide default proxy settings (from the http_proxy/HTTP_PROXY environment variables). The curl client does, because curl has this behaviour built-in, but FileGetContents does not because it doesn't.

Most other HTTP libraries and tools (for PHP and elsewhere) support this, and it was mentioned a few years ago when proxy support was originally added, but it looks like that was never implemented: https://github.com/kriswallsmith/Buzz/pull/58#issuecomment-4660663

I'd find it very useful if FileGetContents automatically detected and used the system proxy settings, so the standard example Buzz code worked out of the box on systems with a proxy configured.

pimterry avatar May 21 '19 08:05 pimterry