DefaultWebProxy Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets the global HTTP proxy.

Namespace:  System.Net
Assembly:  System.Http (in System.Http.dll)

public static IWebProxy DefaultWebProxy { get; set; }

Property Value

Type: System.Net..::..IWebProxy
An IWebProxy used by every call to instances of WebRequest.

The DefaultWebProxy property gets or sets the global proxy. The DefaultWebProxy property determines the default proxy that all WebRequest instances use if the request supports proxies and no proxy is set explicitly using the Proxy property. Proxies are currently supported by FtpWebRequest and HttpWebRequest.

If the DefaultWebProxy property is set to null, all subsequent instances of the WebRequest class created by the Create or CreateDefault methods do not have a proxy.

Show: