in reply to problem with http::recorder
use strict; use warnings; use HTTP::Proxy; use HTTP::Recorder; my $proxy = HTTP::Proxy->new( port => 3128 ); my $agent = new HTTP::Recorder; #Try C:\Desktop\Agent\log $agent->file("/home/Desktop/Agent/log"); $proxy->agent( $agent ); $agent->control(["http://127.0.0.1"]); $proxy->start(); 1;
Try file with one backslash. I added control. It won't work without it because http://127.0.0.1 will become the URL for my http-recorder.
First, create a directory on the desktop---I called it Agent. Then create a file called log.
Next, after $proxy->start();, minimize the prompt and go to your browser. Manually adjust the browser so that it can use the proxy. Type in http://127.0.0.1, or whatever URL that you want to use. Then start your browsing. After you're finished, check the log in Agent.
I've tried to keep this clear and simple, but if it's not, then please let me know.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: problem with http::recorder
by Anonymous Monk on May 25, 2012 at 22:05 UTC | |
|
Re^2: problem with http::recorder
by Anonymous Monk on Sep 14, 2007 at 02:52 UTC |