Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > e0f0961b75b8c06a97c13e17e9f38b60 > files > 16

perl-HTTP-Proxy-0.304.0-5.mga7.noarch.rpm

#!/usr/bin/perl -w

# based on Google's Elmer Fudd preference setting

use HTTP::Proxy;
use HTTP::Proxy::BodyFilter::tags;
use HTTP::Proxy::BodyFilter::htmltext;
use strict;

my $proxy = HTTP::Proxy->new(@ARGV);

$proxy->push_filter(
    mime     => 'text/html',
    response => HTTP::Proxy::BodyFilter::tags->new,
    response => HTTP::Proxy::BodyFilter::htmltext->new(
        sub { y/r/w/; s/l(?=\w)/w/g }
    )
);

$proxy->start;