Subject: | Can't locate object method "query_param... |
Module:
HTTP::Recorder
Version:
perl -MHTTP::Recorder -e 'use HTTP::Recorder; print HTTP::Recorder->VERSION, "\n";'
0.05
OS Environment:
uname -a
Linux bitspot 2.6.9-11.ELsmp #1 SMP Wed Jun 8 17:54:20 CDT 2005 i686 i686 i386 GNU/Linux
Perl Version:
perl -v
This is perl, v5.8.5 built for i386-linux-thread-multi...
Script (essentially the same as the synopsis, but with two more use lines and with a port specified):
################# snip ###################
#!/usr/bin/perl
use HTTP::Proxy;
use HTTP::Recorder;
use URI::QueryParam;
use HTTP::Request::Params;
my $proxy = HTTP::Proxy->new( port => 3128 );
# 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;
################# snip ###################
Error message:
Can't locate object method "query_param" via package "rec-action=submitform&rec-formname=login&rec-formnumber=1&rec-form1-hidden-action=1&action=authenticate&rec-form1-hidden-javascriptEnabled=1&javascriptEnabled=1&rec-form1-text-loginId=1&loginId=someuserid&rec-form1-password-password=1&password=somepassword" (perhaps you forgot to load "rec-action=submitform&rec-formname=login&rec-formnumber=1&rec-form1-hidden-action=1&action=authenticate&rec-form1-hidden-javascriptEnabled=1&javascriptEnabled=1&rec-form1-text-loginId=1&loginId=someuserid&rec-form1-password-password=1&password=somepassword"?) at /usr/lib/perl5/site_perl/5.8.5/HTTP/Recorder.pm line 347.
Comment:
I see that multiple users have been experiencing this problem, and nobody is offering any useful help:
http://aspn.activestate.com/ASPN/Mail/Message/perl-macosx/2789778
http://lists.bestpractical.com/pipermail/http-recorder/2005-August/000058.html
Note that while for the first case, Gisle Aas offered a suggestion, that suggestion did not fix the problem. Neither of the above two posters is me. I am trying something very, very simple, a login to a two-field form page, through Firefox which is pointing to the proxy. It is writing to the log file, but the submit is not going through in the browser, so the browser stays at the login page without logging in, and the script prints out the error message pasted above. Please visit your email lists and relevant web sites and tell people how to fix this! Thanks!