function FindProxyForURL (url, host) { if ( shExpMatch (host, "127.0.0.1") || isPlainHostName(host) || dnsDomainIs(host,"mycompany.intranet") || shExpMatch(host,"xy.xyz.*") || ) return "DIRECT"; return "PROXY proxy.mycompany.intranet:8080"; }