nsIProxyAutoConfig

IID:26fae72a-1dd2-11b2-9dd9-cb3e0c2c79ba
Inherits From:nsISupports

Methods

ACString getProxyForURI ( nsIURI URI ) void loadPACFromURI ( nsIURI URI , nsIIOService ioService )

ACString getProxyForURI ( nsIURI URI )

Get the proxy string for the specified URI. The proxy string is given by the following BNF:

Result = proxy-spec *( proxy-sep proxy-spec ) proxy-spec = direct-type proxy-type LWS proxy-host [":" proxy-port] direct-type = "DIRECT" proxy-type = "PROXY" "SOCKS" "SOCKS4" "SOCKS5" proxy-sep = ";" LWS proxy-host = hostname ipv4-address-literal proxy-port = LWS = *( SP HT ) SP = HT =

NOTE: direct-type and proxy-type are case insensitive NOTE: SOCKS implies SOCKS4

Examples: "PROXY proxy1.foo.com:8080; PROXY proxy2.foo.com:8080; DIRECT" "SOCKS socksproxy" "DIRECT"

XXX add support for IPv6 address literals. XXX quote whatever the official standard is for PAC.

Arguments:
URI

void loadPACFromURI ( nsIURI URI , nsIIOService ioService )

Load the PAC file from the specified URI

Arguments:
URI
ioService

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com