Re: PAC (Proxy Auto-Config ) program interface
Re: PAC (Proxy Auto-Config ) program interface
- Subject: Re: PAC (Proxy Auto-Config ) program interface
- From: "Sherman He" <email@hidden>
- Date: Fri, 10 Dec 2004 11:17:01 +0800
Hi Heath
Thank you for your reply.
Mozilla is great, i heard that even microsoft's pac implement was also base
on it.
But the development time of this way may beyond our schedule,
if no other ways, i will try to put off this feature from current release.
Anyway , thank you so much for your helps!
Best Regards,
Sherman
Hi Sherman,
On 09/12/2004, at 2:51 PM, Sherman He wrote:
Hi All,
In OS X 10.3 , there is a 'Automatic Proxy Configuration' item in NetWork's Proxies setting, where we can put a
.pac file
for proxy use.
Currently i am working in a project which will get the .pac file, parse
and
get some proxy setting from it.
So I try to find a program interface to parse a .pac file ,Anyone got
any
ideas?? Can it be done, is there a solution, simple or
otherwise.
There were very few interfaces to call upon back when I did this last
year and I'm not sure that that has changed. In the meantime, Apple has
implemented the feature as you say, and I've made my code open source. It
took some considerable development time, but I was able to build on the
open source work already done by the Mozilla team on their SpiderMonkey
engine:
<http://www.mozilla.org/js/spidermonkey/>
SpiderMonkey is Mozilla's Javascript parsing engine for C. It lets you
compile and execute Javascript source (the language of PAC files) from
within a C-compatible environment. I will now assume this is the kind of
thing you are after!
I worked with the Mozilla team to streamline the installation and
integration of SpiderMonkey on OS X and would recommend checking out the
fruits of that labour. From there, there is still some effort involved in
providing an environment for PAC files, but well, that's what I did in my
now open source program and you are free to check that out. It's
certainly not the nicest implementation possible (Mozilla itself
obviously has a very robust, sophisticated implementation) and I'd change
a couple of things if I were to do it again, but just between you and me
;) my users tell me it is quicker than Apple's implementation. That said,
it is GPL'ed so you'd have to consider that license if you were to use
the code. Right, enough blabbing, the software is called Authoxy, and
you'll find the necessary info in the Open Source link at:
<http://www.hrsoftworks.net>
Dumb disclaimer - I obviously have a large vested interest in that
company and its products.
Regards,
Heath
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden