Search notes:

Perl module Net::ProxyMod

use warnings;
use strict;

use Net::ProxyMod;

my $local_host  = "localhost";
my $local_port  =       9090 ;
my $remote_host = "localhost";
my $remote_port =         80 ;
my $debug       =          1 ;

my $proxy = Net::ProxyMod->new($local_host, $local_port, $remote_host, $remote_port, $debug);

# Go!
$proxy->get_conn(\&server_to_client, \&client_to_server);

sub server_to_client {

    my $data = shift;

   (my $printable = $data) =~ s/\W/./g;

    print "\n\nIn:\n$data";

    return $data;
}

sub client_to_server {
    my $data = shift;

   (my $printable = $data) =~ s/\W/./g;

    print "\n\nOut:\n$data";

    return $data;
}
Github repository PerlModules, path: /Net/ProxyMod/script.pl

See also

HTTP::Proxy
Perl modules
proxy

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758203001, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/Net/ProxyMod/index(79): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78