2. Automatic proxy configuration URL

The proxy auto-config file defines how web browsers and other user agents can automatically choose the appropriate proxy server (access method) for fetching a given URL.

Example 4.2. Using automatic proxying

To use the PAC proxy file on http://us2.indexdata.com:9005/id/cf.pac

     user_pref("network.proxy.autoconfig_url", "http://us2.indexdata.com:9005/id/cf.pac");
     user_pref("network.proxy.type", 2);

Note: every connector will download the cf.pac for every session. This may create a high load on the server side. You can store also on the local disk.

To use the PAC proxy file on local file system

     user_pref("network.proxy.autoconfig_url", "file:///home/wosch/indexdata/cf/engine/src/cf.pac");
     user_pref("network.proxy.type", 2);

An example for a proxy auto-config is located in src/cf.pac.