>
http://en.wikipedia.org/wiki/Proxy_auto-config
Having a little trouble with the script language the proxy.pac file...
Here's what I've copied & modified from examples on the above page:
- - -
function FindProxyForURL(url, host) {
// URLs within the target domain are
// accessed through the proxy server:
if (shExpMatch(host, "http://www.bbc.co.uk*"))
{
return "PROXY 123.345.567.789:1234";
}
// All other requests don't use the proxy.
return "DIRECT";
}
- - -
If I comment out the "if" line and just return the proxy IP and port, all is
well. (Oh, and also comment out the "return 'DIRECT' " line at the bottom.)
But as it is (above) the proxy is not used. All web pages are loaded
normally, just not using the proxy.
It's probably bog simple, but I'm missing it.
Thanks.