NSUrlSessionHandler.DefaultProxyCredentials Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The credentials to submit to the proxy server for authentication.
public System.Net.ICredentials? DefaultProxyCredentials { get; set; }
member this.DefaultProxyCredentials : System.Net.ICredentials with get, set
Property Value
The credentials to use to authenticate with the proxy, or null to not provide any proxy credentials.
Remarks
These credentials are only used when the proxy itself (Proxy) doesn't provide its own credentials.
Proxy authentication is only supported for HTTPS destinations (which are proxied using a CONNECT tunnel). For plain HTTP destinations NSUrlSession doesn't deliver a proxy authentication challenge, so these credentials aren't applied and an authenticating proxy will return an HTTP 407 response instead.