Re: cURL and .pac files
Date: Tue, 25 Jun 2002 03:20:53 -0500
Me and my big mouth....
OK, after a stupendous effort (well, 5 seconds.... :) Altavista turned up the
"Navigator Proxy Auto-Config File Format" doc which listed the 12 predefined
functions you can use in a .pac file.
The Mozilla Cross Reference search thingy on the spidermonkey page at mozilla.org
turned up a link to nsProxyAutoConfig.js which, among other things, contains the
To cut a long story short, I slapped the 12 functions on the front of my .pac
results for the urls I asked it to check.
So, Daniel, barring discussion over licensing (Mozilla uses Netscape Public
License(duh!) as well as GPL and LGPL), etc, I'd say there's a workable .pac
interpreter for cURL... All it needs is some thought on bolting the two
together... I haven't really dug through cURL's source much, so I don't have the
slightest idea where to put it...
Ralph Mitchell wrote:
> Much as I would like to stun the entire world by adding a .pac reader to cURL,
> I'm afraid it's a little more complex than it looked at first.
> ran our own .pac through them. I had to comment out two functions that were
> not found - dnsDomainIs and shExpMatch - which tells me that either both
> random number of other bits]. Since then I haven't had time to take it
> SpiderMonkey (http://www.mozilla.org/js/spidermonkey).
> While it shouldn't be too hard to replicate the missing functions, I'd be
> surprised if those are the *only* missing functions.
> Ralph Mitchell
> Daniel Stenberg wrote:
> > On Fri, 21 Jun 2002, Sarnicola, Anthony (Exchange) wrote:
> > > Does cURL handle the Automatic Configuration .pac scripts (like in IE LAN
> > > Settings)?
> > See FAQ item 3.14 => http://curl.haxx.se/docs/faq.html
> > Ralph Mitchell has hinted that he might have a go at an implementation one
> > day, but other than that, there are no plans to add support for this.
ThinkGeek at http://www.ThinkGeek.com/
Received on 2002-06-25