System.Net.WebRequest.DefaultWebProxy Property

Gets or sets the global HTTP proxy.

Syntax

public static IWebProxy DefaultWebProxy { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

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

The WebRequest.DefaultWebProxy property reads proxy settings from the app.config file. If there is no config file, the current user's Internet Explorer (IE) proxy settings are used.

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

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0