Proxy Auto-Config file contains a JavaScript function “FindProxyForURL(URL, host)”. This function returns a string with one or more access method specifications. These specifications cause the user agent to use a particular Proxy Server or to connect directly.
Multiple specifications provide a fall-back when a proxy fails to respond. The browser fetches this Proxy Auto-Config file before requesting other URLs. The URL of the Proxy Auto-Config file is either configured manually or determined automatically by the Web Proxy Auto-Discovery Protocol.