Re: mod_proxy chaining with a .pac file - OFF-TOPIC?

2008-01-23 Thread Giovanni Donelli
Take this pac file: $ curl http://wpad.wws.lan/wpad.dat function FindProxyForURL(url, host) { // simple hostname if (dnsDomainLevels(host) == 0) {return "DIRECT";} // match Host against local domains (w/ optional :port) var dom = /(127\.\d+\.\d+\.\d+|\.wws\.lan\.?|\.local\.?)(:\d+)

Re: mod_proxy chaining with a .pac file - OFF-TOPIC?

2008-01-23 Thread Joe Lewis
Giovanni Donelli wrote: Take this pac file: $ curl http://wpad.wws.lan/wpad.dat function FindProxyForURL(url, host) { // simple hostname if (dnsDomainLevels(host) == 0) {return "DIRECT";} // match Host against local domains (w/ optional :port) var dom = /(127\.\d+\.\d+\.\d+|\.wws

Re: mod_proxy chaining with a .pac file - OFF-TOPIC?

2008-01-23 Thread Giovanni Donelli
I am trying to make Apache follow the same rules as the browser On Jan 23, 2008 2:34 PM, Joe Lewis <[EMAIL PROTECTED]> wrote: > Giovanni Donelli wrote: > > Take this pac file: > > $ curl http://wpad.wws.lan/wpad.dat > > function FindProxyForURL(url, host) > > { > > // simple hostname > >

Re: mod_proxy chaining with a .pac file

2008-01-23 Thread Joe Lewis
Giovanni Donelli wrote: I am trying to make Apache follow the same rules as the browser Realize that the browser doesn't get the configurations for each website it visits, it only configures, then runs using the same configuration for every website. That means it should be easy to create

Re: mod_proxy chaining with a .pac file

2008-01-23 Thread Ralf Mattes
On Wed, 2008-01-23 at 11:12 -0700, Joe Lewis wrote: > Giovanni Donelli wrote: > > I am trying to make Apache follow the same rules as the browser > > > > Realize that the browser doesn't get the configurations for each website > it visits, it only configures, then runs using the same configura

Re: mod_proxy chaining with a .pac file

2008-01-23 Thread Joe Lewis
Ralf Mattes wrote: On Wed, 2008-01-23 at 11:12 -0700, Joe Lewis wrote: Giovanni Donelli wrote: I am trying to make Apache follow the same rules as the browser Realize that the browser doesn't get the configurations for each website it visits, it only configures, then runs usi

Re: mod_proxy chaining with a .pac file

2008-01-23 Thread Ralf Mattes
On Wed, 2008-01-23 at 11:48 -0700, Joe Lewis wrote: > Ralf Mattes wrote: > > On Wed, 2008-01-23 at 11:12 -0700, Joe Lewis wrote: > > > >> Giovanni Donelli wrote: > >> > >>> I am trying to make Apache follow the same rules as the browser > >>> > >>> > >> Realize that the browser do

Re: mod_proxy chaining with a .pac file

2008-01-23 Thread Giovanni Donelli
On Jan 23, 2008 6:27 PM, Ralf Mattes <[EMAIL PROTECTED]> wrote: > On Wed, 2008-01-23 at 11:12 -0700, Joe Lewis wrote: > > Giovanni Donelli wrote: > > > I am trying to make Apache follow the same rules as the browser > > > > > > > Realize that the browser doesn't get the configurations for each web

Re: mod_proxy chaining with a .pac file

2008-01-23 Thread Giovanni Donelli
Are you talking about a JS lib or a code that does what I need, support for .pac proxy chaning? As with regards with JS I was going to use the WebKit's JavaScriptCore. > There _IS_ a library (C and python(?) interface) - downloadable from the > google code link posted in the first message ... tr