[squid-users] Proxy.pac

From: Yuri Sytema <Yuri.S@dont-contact.us>
Date: Tue, 13 Mar 2001 15:25:13 +0100

Hi,

Little question..

This is our proxy.pac

function FindProxyForURL (url, host)
{
        if (isInNet(host,"212.189.163.0","255.255.255.0") ||
               isInNet(host,"172.16.11.0","255.255.255.0") ||
               isInNet(host,"192.168.0.0","255.255.0.0") ||
               url.substring(0,6) == "https:" ||
               url.substring(0,15) == "http://mildcafe" ||
               url.substring(0,24) == "http://arma.econom-i.com" ||
               url.substring(0,23) == "http://cms.econom-i.com" ||
               url.substring(0,23) == "http://cms.snakeware.nl" ||
               url.substring(0,21) == "http://support.cognos" ||
               url.indexOf("CMS_EDIT") > 0 ||
               url.indexOf("CMS%5FEDIT") > 0 ||
               url.indexOf("CMS_TCP") > 0)
                return "DIRECT";
        else
                return "PROXY lproxy.arma.nl:3128";
}

Will the url.indexOf function work?
It seems to work, but still sometines I have log entries like:

http://www.arma.com/default.asp?CMS_TCP=tcpAsset&id=%3DBA57236BFA5111D398060
0C04F037557

(this is only the url:)

What am I doing wrong?

Yuri Sytema
Received on Tue Mar 13 2001 - 07:23:52 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:58:37 MST