Skip Menu |

This queue is for tickets about the HTTP-ProxyAutoConfig CPAN distribution.

Report information
The Basics
Id: 18683
Status: resolved
Priority: 0/
Queue: HTTP-ProxyAutoConfig

People
Owner: MACKENNA [...] cpan.org
Requestors: bwarden+pause [...] wgz.org
Cc: brett.t.warden [...] intel.com
AdminCc:

Bug Information
Severity: Important
Broken in: 0.1
Fixed in: (no value)



CC: brett.t.warden [...] intel.com
Subject: Attempts to translate JavaScript to Perl instead of running with libjs
HTTP::ProxyAutoConfig attempts to translate the received PAC JavaScript into Perl, but can only handle simple cases. Instead, it can use the JavaScript module to execute the PAC natively in an embedded JavaScript context, which is safer and more reliable. The attached patch implements the change to use the JavaScript module, and also adds a few other improvements, such as using LWP::Simple to retrieve the PAC, cleaned up logic for fallback to *_proxy environment variables, etc. Disclosure: This patch has been approved for public release by Intel, on whose time I wrote it.
Subject: ProxyAutoConfig.patch

Message body is not shown because it is too large.

RT-Send-CC: brett.t.warden [...] intel.com
The recommended action was embodied in the HTTP::ProxyPAC module. which was originated by Tatsuhiko Miyagawa in 2006, and has been improved to use either JavaScript or JE in March 2010. HTTP::ProxyAutoConfig has also been improved in March 2010, so that its JavaScript- Show quoted text
>Perl translation is more correct/robust.