Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > extract proxy configuration from .pac script

extract proxy configuration from .pac script
Thread Tools
Fresh-Faced Recruit
Join Date: Jun 2007
Status: Offline
Reply With Quote
Jun 17, 2007, 09:09 AM
 
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 (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 ?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:29 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2