Question : Java proxy script questions

I have two questions:

Qusestion 1: We have about 50 subnets I need to add into the script below so it will point to the proxy server (proxy1).
                  What do I need to do here?

Question 2: We have another proxy server proxy2, I like to add that in the statement -->   return "PROXY proxy1:8080"; "PROXY proxy2:8080";
                  I am not sure if that is the correct syntax or even allow.

Thank you.


function FindProxyForURL(url,host)
{
if(shExpMatch(url,"http://abcteams*")){
        return "DIRECT";
}
if (shExpMatch(url,"http://boat*")){
        return "DIRECT";
}
if(isInNet(myIpAddress(),"192.33.70.0","255.255.255.0"))
        return "PROXY proxy1:8080";
        else
        return "DIRECT";
}

Answer : Java proxy script questions

The proxy.pac file need not be on the prox1 or proxy2 server.
You can put the proxy.pac at any other http server in your network.



Random Solutions  
 
programming4us programming4us