80degreez has asked for the wisdom of the Perl Monks concerning the following question:
Is used to login to a website.$mech->get("http://indiecharts.com/"); $mech->cookie_jar( HTTP::Cookies->new() ); if( $mech->content() =~ /<form Method="Post" action="login.asp"> / ){ $mech->form_number($fn); $mech->field( UserName => $usr ); $mech->field( Password => $pw ); $mech->submit(); if ($mech->success() ) { if ( $mech->content() =~ /Pick your IndieCharts Name/ ) { print "User $usr logged in successfully!\n" ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mechanize Form Issue?
by Cody Pendant (Prior) on May 02, 2007 at 07:14 UTC | |
|
Re: Mechanize Form Issue?
by GrandFather (Saint) on May 01, 2007 at 22:45 UTC | |
by 80degreez (Initiate) on May 01, 2007 at 22:53 UTC | |
|
Re: Mechanize Form Issue?
by polettix (Vicar) on May 02, 2007 at 15:33 UTC |