Skip to Main Content
C# in a Nutshell, Second Edition
book

C# in a Nutshell, Second Edition

by Peter Drayton, Ben Albahari, Ted Neward
August 2003
Intermediate to advanced content levelIntermediate to advanced
928 pages
32h 1m
English
O'Reilly Media, Inc.
Content preview from C# in a Nutshell, Second Edition

Name

WebProxy

Synopsis

This implementation of IWebProxy supports HTTP proxies. Use the one-argument form of the constructor to specify the URI of the proxy server. The second argument, BypassOnLocal, if set to true, bypasses the proxy server for local (intranet) addresses. Other forms of the constructor allow you to specify an array that lists servers for which you should bypass the proxy (this list can contain regular expression strings containing URI patterns to match). You can also supply network credentials to authenticate your application to the proxy server.

See GlobalProxySelection or the WebRequest.Proxy property for details on configuring a proxy.

public class WebProxy : IWebProxy, System.Runtime.Serialization.ISerializable {
// Public Constructors
   public WebProxy( );
   public WebProxy(string Address);
   public WebProxy(string Address, bool BypassOnLocal);
   public WebProxy(string Address, bool BypassOnLocal, string[ ] BypassList);
   public WebProxy(string Address, bool BypassOnLocal, string[ ] BypassList, ICredentials Credentials);
   public WebProxy(string Host, int Port);
   public WebProxy(Uri Address);
   public WebProxy(Uri Address, bool BypassOnLocal);
   public WebProxy(Uri Address, bool BypassOnLocal, string[ ] BypassList);
   public WebProxy(Uri Address, bool BypassOnLocal, string[ ] BypassList, ICredentials Credentials);
// Protected Constructors
   protected WebProxy(System.Runtime.Serialization.SerializationInfo serializationInfo,
       System.Runtime.Serialization.StreamingContext streamingContext ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C# in a Nutshell

C# in a Nutshell

Ben Albahari, Ted Neward, Peter Drayton
C# 7.0 in a Nutshell

C# 7.0 in a Nutshell

Joseph Albahari, Ben Albahari
C# Cookbook, 2nd Edition

C# Cookbook, 2nd Edition

Jay Hilyard, Stephen Teilhet
C# Cookbook

C# Cookbook

Joe Mayo

Publisher Resources

ISBN: 0596005261Catalog PageErrata