Hi,
I've got some specific requirements for a PAC script. I'm looking to
use PAC to enforce some form of authentication, such that once the user
is authenticated they're told to go DIRECT. The benefit of using PAC is
that it's fail-safe. If the authentication server is unavailable, then
the client will just go direct. HTTP response code 306 would solve my
needs, but this has been discontinued and not implemented. So, I'm
looking for alternatives for achieving this:
One approach would be to either state in the PAC sandbox between
requests / make calls to external functions / read cookies;
function FindProxyForURL(url, host) {
if (isAuthenticated()) {
return "DIRECT";
} else {
return "PROXY my.server.com:80";
}
}
However, having looked at the Firefox code, it doesn't look as if this
is possible. So, instead, I'd like to know what response a proxy server
can send that'd cause Firefox to consider that proxy invalid and move to
the next proxy server. I'd then use a PAC as follows:
function FindProxyForURL(url, host) {
return "PROXY my.server.com:80; DIRECT";
}
Can anyone offer any suggestions?
Thanks,
robsh
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network