Hello,
I'm trying to create a proxy autoconfiguration script, but I'm not familiar enough with Javascript to get it working properly. At the moment, I'm just trying the most basic thing possible, which is to direct all requests through the proxy server regardless of source or destination. The javascript looks like this - with IP addresses changed to protect the innocent, of course -
function FindProxyForURL(url, host) {
return "PROXY 192.168.1.1:8080; DIRECT";
}
I saved the above as proxy.pac, placed it on an IIS server, set the mime type for .pac to application/x-ns-proxy-autoconfig, and pointed the autoconfig url in the browser to the correct location. If I open up the browser and use netstat -n, I see that I'm still connecting directly to the target website.
So, can anyone tell me where the problem might lie? Any help is much appreciated.
Thanks,
Mirth
I'm trying to create a proxy autoconfiguration script, but I'm not familiar enough with Javascript to get it working properly. At the moment, I'm just trying the most basic thing possible, which is to direct all requests through the proxy server regardless of source or destination. The javascript looks like this - with IP addresses changed to protect the innocent, of course -
function FindProxyForURL(url, host) {
return "PROXY 192.168.1.1:8080; DIRECT";
}
I saved the above as proxy.pac, placed it on an IIS server, set the mime type for .pac to application/x-ns-proxy-autoconfig, and pointed the autoconfig url in the browser to the correct location. If I open up the browser and use netstat -n, I see that I'm still connecting directly to the target website.
So, can anyone tell me where the problem might lie? Any help is much appreciated.
Thanks,
Mirth