cURL / Mailing Lists / curl-users / Single Mail


Re: cURL and .pac files

From: Ralph Mitchell <>
Date: Tue, 25 Jun 2002 00:33:51 -0500

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.

I found a couple of standalone javascript interpreters, compiled them up and
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
interpreters are incomplete, or the .pac interpreter is javascript+[some
random number of other bits]. Since then I haven't had time to take it

FYI, the interpreters I tried are NGS Javascript ( and
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 =>
> 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.
> --
> Daniel Stenberg -- curl groks URLs --
> -------------------------------------------------------
> Sponsored by:
> ThinkGeek at

Sponsored by:
ThinkGeek at
Received on 2002-06-25