Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
extract proxy configuration from .pac script
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="sdebrois" data-source="post: 417031" data-attributes="member: 32817"><p>Hi all,</p><p></p><p>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.</p><p></p><p>How to do this in my C/C++ application ?</p><p></p><p>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 ?</p><p></p><p>;D</p></blockquote><p></p>
[QUOTE="sdebrois, post: 417031, member: 32817"] 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 [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
extract proxy configuration from .pac script
Top