extract proxy configuration from .pac script

Joined
Jun 17, 2007
Messages
1
Reaction score
0
Points
1
Hi all,

I would like to get my proxy configuration using the cbrowser conguration and also using PAC (proxy automatic configuration) files which allows selecting the appropriate server for a given URL.

How to do this in my C/C++ application ?

I have a path to the .pac file received using SystemConfiguration Framework API. But What is the solution to interpret the javascript function from my C++ application ? MAC OS X does not have (or at least I did not discover it) any API to extract proxy for a given URL from .pac file. For this purpose I would like to use the SpiderMonkey JavaScript engine supported by Mozilla. Is it possible to extract only what i want from SpiderMonkey ? and are there any examples to give me an idea ? does it exist others solutions ?

;D
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top