• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PAC (Proxy Auto-Config ) program interface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PAC (Proxy Auto-Config ) program interface


  • Subject: Re: PAC (Proxy Auto-Config ) program interface
  • From: Heath Raftery <email@hidden>
  • Date: Thu, 09 Dec 2004 18:58:11 +1100

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


  • Follow-Ups:
    • Re: PAC (Proxy Auto-Config ) program interface
      • From: "Sherman He" <email@hidden>
References: 
 >PAC (Proxy Auto-Config ) program interface (From: "Sherman He" <email@hidden>)

  • Prev by Date: PAC (Proxy Auto-Config ) program interface
  • Next by Date: Re: Question about CFHTTPMessageAppendBytes
  • Previous by thread: PAC (Proxy Auto-Config ) program interface
  • Next by thread: Re: PAC (Proxy Auto-Config ) program interface
  • Index(es):
    • Date
    • Thread