[Feature Request] Proxy auto-configuration (PAC) support

I want to be able to resolve URLs for HTTP proxy servers dynamically by downloading and processing a PAC file, whose purpose is to tell an HTTP client which proxy server URL(s) to use for connections. Currently the Mender client only allows setting a static proxy URL using the HTTP_PROXY or HTTPS_PROXY environment variable.

A workaround I am considering is to use a stand-alone script or program that will download and process a PAC file and write the corresponding proxy server URL list to a file. Then I’d make a systemd timer that periodically runs that script and restarts Mender client with a new value for HTTPS_PROXY.