System.Net.WebRequest.GetSystemWebProxy Method

Returns a proxy configured with the Internet Explorer settings of the currently impersonated user.

Syntax

[System.MonoTODO("Look in other places for proxy config info")]
public static IWebProxy GetSystemWebProxy ()

Returns

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

Remarks

WebRequest.GetSystemWebProxy method reads the current user's Internet Explorer (IE) proxy settings. This process includes the IE options to automatically detect proxy settings, use an automatic configuration script, manual proxy server settings, and advanced manual proxy server settings.

If your application is impersonating several users, you can use the WebRequest.GetSystemWebProxy method to retrieve a proxy for each impersonated user.

Requirements

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