> I am trying to automate a web page interaction and to figure out the
> initial interaction sequence, I have installed HTTP::Recorder and
> HTTP::Proxy, but the recorder fails to follow the login-in button due
> to a missing method called "query_param". Any advice here?
Try to add the statement 'use URI::QueryParam' to your program.
Regards,
Gisle
Paul Fons - 23 Aug 2005 10:34 GMT
Actually, the same error occurs. Here is the program
cat recorder.pl
#!/usr/bin/perl
use HTTP::Proxy;
use URI::QueryParam ;
use HTTP::Recorder;
my $proxy = HTTP::Proxy->new();
# create a new HTTP::Recorder object
my $agent = new HTTP::Recorder;
# set the log file (optional)
$agent->file("/tmp/myfile");
# set HTTP::Recorder as the agent for the proxy
$proxy->agent( $agent );
# start the proxy
$proxy->start();
1;
and execution of it (via camino) looks like:
perl recorder.pl
Can't locate object method "query_param" via package "rec-
action=submitform&rec-formname=form2&rec-formnumber=1&rec-form1-text-
USER_ID=1&USER_ID=XXXXXX&rec-form1-password-
USER_PASSWORD=1&USER_PASSWORD=XXXXXXX&rec-form1-submit-
button=1&button=LOGIN&rec-form1-radio-ilang=1&rec-form1-radio-
ilang=1&ilang=j&rec-form1-radio-MENU_POS=1&rec-form1-radio-
MENU_POS=1&MENU_POS=BOTTOM" (perhaps you forgot to load "
>> I am trying to automate a web page interaction and to figure out the
>> initial interaction sequence, I have installed HTTP::Recorder and
[quoted text clipped - 5 lines]
> Regards,
> Gisle