PAC files linking to other PAC files?

If I am in one autoproxy PAC file and returning the "PROXY xxx.com:80" option, can that link be to another PAC file? Do the url and host parameters for FindProxyForURL(url, host) stay the same or is there something lost?

Continuing on the same topic, what if one or both of these proxy files are hosted behind HTTPS?


Solution 1:

The doc says (reformatted):

Table 11.2

FindProxyForURL return values and resulting action of Netscape Navigator

DIRECT: Make connections directly to the server without going through any proxies.

PROXY host:port: Use the specified proxy and port number. If multiple values are separated by semicolons, the first proxy is used. If that proxy fails, then the next proxy is used, and so on.

This means: It is not a URL, but a hostname (or IP address) and port number.

You can't daisy-chain PAC files, but WPAD might come in handy depending on what you're trying to accomplish.