August 2003
Intermediate to advanced
928 pages
32h 1m
English
WebProxy
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(stringAddress); public WebProxy(stringAddress, boolBypassOnLocal); public WebProxy(stringAddress, boolBypassOnLocal, string[ ]BypassList); public WebProxy(stringAddress, boolBypassOnLocal, string[ ]BypassList, ICredentialsCredentials); public WebProxy(stringHost, intPort); public WebProxy(UriAddress); public WebProxy(UriAddress, boolBypassOnLocal); public WebProxy(UriAddress, boolBypassOnLocal, string[ ]BypassList); public WebProxy(UriAddress, boolBypassOnLocal, string[ ]BypassList, ICredentialsCredentials); // Protected Constructors protected WebProxy(System.Runtime.Serialization.SerializationInfoserializationInfo, System.Runtime.Serialization.StreamingContextstreamingContext ...