Hello!
Following is our PAC file:
if (/MSIE(\d+\.\d+);.test(navigator.userAgent))
{
// test for MSIE x.x;
var ieversion=new Number(RegExp.$1)
if (ieversion >= 8)
{
// ie 8 proxy auto config bit
function FindProxyForURL (url, host)
{
if (shExpMatch(url, "))
{
return "DIRECT";
}
// required for Internet Explorer 8
if (isInNet(dnsResolve(host), "10.2.0.0", "255.255.0.0"))
{
return "PROXY [proxy_server]:8080";
}
else // user is outside of the school network
{
return "DIRECT";
}
}
}
if (ieversion <= 7)
{
function FindProxyForURL (url, host)
{
if (shExpMatch(url, "))
{
return "DIRECT";
}
if (isInNet(myIpAddress(), "10.2.0.0", "255.255.0.0"))
{
return "PROXY ICT0IWF:8080";
}
else
{
return "DIRECT";
}
}
}
else
{
// so something, perhaps for the future. Not IE
}
}
We are currently upgrading from Internet Explorer 7 to version 8 and as per this [thewaystation] posting, IE8 requires new syntax for the proxy
files where you must use DNS to resolve a host name to use in the function isInNet hence:
if (isInNet(dnsResolve(host), "10.2.0.0", "255.255.0.0"))
...which is documented [here_url].
And whilst this is all good, it doesn't work! I have debugged thus far:
1 Direct connection using IE8
2 Proxy and direct connection using older versions of IE
When using IE8 this bit of logic in the code does not work as expected (IE8 attempts a direct connection):
if (isInNet(dnsResolve(host), "10.2.0.0", "255.255.0.0"))
{
return "PROXY [proxy_server]:8080";
}
Further help to get this to work would be greatly appreciated!
Regards, Matt