Web Proxy Auto-Discovery (WPAD)

References

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";
}


CategoryDocumentation

jakllsch's wiki: WebProxyAutoDiscovery (last edited 2005-06-18 14:53:47 by ath0)