book/HTTP-Proxy — pull request #2 by hernan604 (2012-04-12 02:24:31+00:00)
Title: added support for simple redirect of url, man in the middle style.

Hi Book, im br dev, i use your lib to debug some js and css on production websites.. so i activate the proxy and configure as below.. and just open the page and tada! it makes easier to debug css/js in prod servers without touching the real files.
If you are interested on this solution accept the pull request, and you can add your changes.

Example of configuration:

use HTTP::Proxy;
my $proxy = HTTP::Proxy->new( port => 13128 );
$proxy->stash( redirects => {
'http://www.google.com/' => 'http://www.yahoo.com/',
} );
$proxy->start;
1;

Hope we can talk soon, see you, tks