Setting it up
One way to set it up (described in the POD):
- Use it with HTTP::Proxy (written by Philippe "BooK" Bruhat)
- Set HTTP:Recorder to be the UserAgent for the proxy
#!/usr/bin/perl
use HTTP::Proxy;
use HTTP::Recorder;
my $proxy = HTTP::Proxy->new();
# create a new HTTP::Recorder object
my $agent = new HTTP::Recorder;
# set HTTP::Recorder as the agent for the proxy
$proxy->agent( $agent );
# start the proxy
$proxy->start();
1;
|
- Start the proxy
- Tell your browser to use this proxy for HTTP traffic
- Start recording