Web Proxy Auto-Discovery (WPAD)
References
- section 4.4 of
ISBN: 1-56592-536-X BR
LOC cat# TK7895.M4 W45 2001
RFC 3040
Example
example Proxy Auto Confiuration (PAC) scriptBR served from http://wpad.kollasch.net/wpad.dat with MIME type application/x-ns-proxy-autoconfig
function FindProxyForURL(url, host)
{
if (isPlainHostName(host))
return "DIRECT";
if (dnsDomainNameIs(host, "kollasch.net"))
return "DIRECT";
if (dnsDomainNameIs(host, "nodeoakland28.acn"))
return "DIRECT";
if (!isResolvable(host))
return "DIRECT";
return "PROXY proxy:3128; DIRECT";
}