NOTE: This API is now obsolete.
Contains a global default proxy instance for all HTTP requests.
Assembly: System (in System.dll)
The stores the proxy settings for the default proxy that WebRequest instances use to contact Internet sites beyond the local network. The default proxy setting is initialized from the global or application configuration file, and can be overridden for individual requests or disabled by setting the HttpWebRequest::Proxy property to the result of the GetEmptyWebProxy method.
The proxy settings stored in are used by any WebRequest derived objects that support proxies and have their Proxy property value set to nullptr (the default). Proxies are currently supported by FtpWebRequest, HttpWebRequest, and WebClient.
Note Changes to the after a request is made are not reflected in a WebRequest.
The following code example sets the for an HTTP proxy named "webproxy" on port 80.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET FrameworkSupported in: 1.1, 1.0
Obsolete (compiler warning) in 3.5
Obsolete (compiler warning) in 3.5 SP1
Obsolete (compiler warning) in 3.0
Obsolete (compiler warning) in 3.0 SP1
Obsolete (compiler warning) in 3.0 SP2
Obsolete (compiler warning) in 2.0
Obsolete (compiler warning) in 2.0 SP1
Obsolete (compiler warning) in 2.0 SP2