Re: Support for PAC files
Donovan Baarda <[email protected]> Wed, 11 Jun 2014 11:20:34 +1000
| Newsgroups | gmane.comp.web.polipo.user |
|---|---|
| Message-ID | <CAKfm1duRQgCv8=f3ncwT1fakmqQLh2WXsSCwFJS2M3KbSefthg@mail.gmail.com> |
On 9 June 2014 22:08, Juliusz Chroboczek <[email protected]> wrote: > > > Supporting PAC by polipo would ease the forwarding. > > It's been a while since I looked at it, but if memory servers the > "proxy.pac" file is written in Javascript. This makes sense for a web > browser, which already has a JS interpreter, but not for a proxy, which > doesn't need (or want) to be linked with one. Yes, pac is javascript with some special functions available for dissecting the request url. The idea of using it within a proxy as the upstream proxy selection mechanism is interesting, but I agree it's not worth the complexity. I've also seen some pretty nasty proxy.pac abuse, with 100's of lines of js for IMHO no good reason. Using js just invites such abuse. I'd much rather see some sort of generic regex url matching together with support for applying these for selecting parent proxies, caching policy settings, and whatever else you might want to vary per url. Something similar, but less overkill complex, to squid's acl approach. -- Donovan Baarda <[email protected]> ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ Polipo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/polipo-users