DotNetBrowser  1.14
Public Member Functions | Properties | List of all members
DotNetBrowser.CustomProxyConfig Class Reference

Describes a user's proxy settings. More...

Inherits DotNetBrowser.ProxyConfig.

Public Member Functions

 CustomProxyConfig (string proxyRules)
 Constructs a new CustomProxyConfig instance with given proxyRules. More...
 
 CustomProxyConfig (string proxyRules, string exceptions)
 Constructs a new CustomProxyConfig instance with given proxyRules and exceptions. More...
 
- Public Member Functions inherited from DotNetBrowser.ProxyConfig
override bool Equals (object obj)
 

Properties

string ProxyRules [get]
 Gets string that represents proxy rules in specified format. The string should be a semicolon-separated list of ordered proxies that apply to a particular URL scheme. More...
 
string Exceptions [get]
 Gets string that represents the set of URLs that should bypass the proxy settings. More...
 

Detailed Description

Describes a user's proxy settings.

Constructor & Destructor Documentation

DotNetBrowser.CustomProxyConfig.CustomProxyConfig ( string  proxyRules)

Constructs a new CustomProxyConfig instance with given proxyRules.

Examples of the proxyRules string:

"http=foopy:80;ftp=foopy2"

use HTTP proxy "foopy:80" for http:// URLs, and HTTP proxy "foopy2:80" for ftp:// URLs.

"foopy:80"

use HTTP proxy "foopy:80" for all URLs.

"socks4://foopy"

use SOCKS v4 proxy "foopy:1080" for all URLs.

Parameters
proxyRulesstring that represents proxy rules in specified format. The string should be a semicolon-separated list of ordered proxies that apply to a particular URL scheme.
Exceptions
ArgumentExceptionwhen proxyRules is null.
DotNetBrowser.CustomProxyConfig.CustomProxyConfig ( string  proxyRules,
string  exceptions 
)

Constructs a new CustomProxyConfig instance with given proxyRules and exceptions.

The format of the exceptions string can be any of the following:

  • [ URL_SCHEME "://" ] HOSTNAME_PATTERN [ ":" <port> ] Examples: "foobar.com", "*foobar.com", "*.foobar.com", "*foobar.com:99", "https://x.*.y.com:99"
  • "." HOSTNAME_SUFFIX_PATTERN [ ":" PORT ] Examples: ".google.com", ".com", "http://.google.com"
  • [ SCHEME "://" ] IP_LITERAL [ ":" PORT ] Examples: "127.0.1", "[0:0::1]", "[::1]", "http://[::1]:99"
  • IP_LITERAL "/" PREFIX_LENGHT_IN_BITS Examples: "192.168.1.1/16", "fefe:13::abc/33"
  • "&lt;local&gt;" Match local addresses. The meaning of "&lt;local&gt;" is whether the host matches one of: "127.0.0.1", "::1", "localhost".

If you need to provide several exception rules you can separate them using comma: "*foobar.com,.google.com,&lt;local&gt;".

Parameters
proxyRulesstring that represents proxy rules in specified format. The string should be a semicolon-separated list of ordered proxies that apply to a particular URL scheme.
exceptionsstring that represents the set of URLs that should bypass the proxy settings.
Exceptions
ArgumentExceptionwhen proxyRules is null.

Property Documentation

string DotNetBrowser.CustomProxyConfig.Exceptions
get

Gets string that represents the set of URLs that should bypass the proxy settings.

string DotNetBrowser.CustomProxyConfig.ProxyRules
get

Gets string that represents proxy rules in specified format. The string should be a semicolon-separated list of ordered proxies that apply to a particular URL scheme.