Archived Forum Post

Index of archived forum posts

Question:

Possible to use a Proxy Auto-Config (PAC) w/ Chilkat?

Oct 31 '12 at 12:53

Is it possible for Chilkat to use a Proxy PAC script for HTTP proxies?


Answer

First some information about what is in a PAC file:

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

A PAC 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.

Chilkat is unable to use a PAC file because it would need to have a fully built-in Javascript engine to interpret and run the Javascript. A browser, such as FireFox or IE, contains a Javascript engine and therefore it's possible in that environment. However, it's not possible w/ Chilkat.