Sophie

Sophie

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

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

use HTTP::Proxy;
use HTTP::Proxy::BodyFilter::save;

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

# save RFC files as we browse them
$proxy->push_filter(
    path => qr!/rfc\d+.txt!,
    mime => 'text/plain',
    response => HTTP::Proxy::BodyFilter::save->new(
        template => '%f',
        prefix   => 'rfc',
        multiple => 0,
        keep_old => 1,
    )
);

$proxy->start;