New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

extract proxy configuration from .pac script

Post Reply New Thread Subscribe

Thread Tools

Member Since: Jun 17, 2007
Posts: 1
sdebrois is on a distinguished road

sdebrois is offline
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 ?

QUOTE Thanks

Post Reply New Thread Subscribe

« Darwin Terminal | Names List »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting 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 Off
Forum Jump

Similar Threads
Thread Starter
Last Post
apple script to greet me off stand by jakeroberts OS X - Development and Darwin 0 04-29-2007 12:34 PM
Writing a script to change browser preferences - Help ysuee OS X - Operating System 0 01-22-2004 06:28 PM

All times are GMT -4. The time now is 06:54 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?