Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
proposal: net/http: Proxy: Support authentication that takes multiple rounds #22288
The Go http client lacks support for proxy authentication that takes multiple rounds, see for example #20053 . This prohibits support for a wider range of proxy authentications, for example NTLM proxy authentication.
Current issues trying to use NTLM proxy authentication:
I suggest to make the proxy connection setup customisable.
One could extend the
ProxySetup func(ctx ProxySetupContext) error
A context (in this example
A default proxy setup function would be provided. The default proxy setup function would handle the HTTPS+CONNECT case.
An attempt :
I can use a custom dialer as Brad suggested: