in reply to problem with http::recorder

I think that you were on the right track. This worked for me:

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
    Yep, this works until one wants to access HTTPS pages on a web server that is using self signed certificates.
    Have you seen this ?

    LWP::Protocol::https::Socket: SSL connect attempt failed with unknown errorerror:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed at ...lib/LWP/Protocol/http.pm line 51.

    Or, is there an easy setup to ignore certificate checks ??
Re^2: problem with http::recorder
by Anonymous Monk on Sep 14, 2007 at 02:52 UTC
    Hey, U said "Manually adjust the browser so that it can use the proxy." Kinda got stuck there. Could you tell me the proxy settings that I need to add to enable recording ? I don't know my company's proxy.