Fixes #1754: Added support for authenticating proxies