Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
This example sends a WebRequest to www.contoso.com that overrides the global proxy selection with a proxy server named alternateproxy on port 80.
Example
WebRequest req = WebRequest.Create("https://www.contoso.com/");
req.Proxy = new WebProxy("http://alternateproxy:80/");
Dim req As WebRequest = WebRequest.Create("https://www.contoso.com/")
req.Proxy = New WebProxy("http://alternateproxy:80/")
Compiling the Code
This example requires:
- References to the System.Net namespace.
See Also
Concepts
Using Application Protocols
Accessing the Internet Through a Proxy