Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / August 2005



Tip: Looking for answers? Try searching our database.

HTTP::Recorder dying

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul Fons - 22 Aug 2005 05:29 GMT
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?  Here is  
the snippet of the bit where the page is loaded and the username/
password are entered and (almost) sent.  I zapped the password fields  
for privacy reasons...

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=p12345&rec-form1-password-
USER_PASSWORD=1&USER_PASSWORD=XXXXXX&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 "rec-
action=submitform&rec-formname=form2&rec-formnumber=1&rec-form1-text-
USER_ID=1&USER_ID=p12345&rec-form1-password-
USER_PASSWORD=1&USER_PASSWORD=XXXXXX&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"?) at /Library/Perl/5.8.6/HTTP/Recorder.pm  
line 347.
Gisle Aas - 22 Aug 2005 08:39 GMT
> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.