in reply to Log into a screen and getting a response
Update: you may want to use mech-dump - like this:use WWW::Mechanize; my $username = 'user'; my $password = 'pass'; my $url = 'http://www.xyz.com/Login.aspx'; my $mech = WWW::Mechanize->new(autocheck => 1); $mech->get( $url ); $mech->form_name("login form name"); $mech->field("username", $username); $mech->field("password", $password); $mech->click("login button/submit name"); $mech->content() =~ /sm.th. from Track.aspx/ and print "logged in\n" __END__
in order to see the input fields.mech-dump "http://some.web-site.com/login.html"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Log into a screen and getting a response
by Anonymous Monk on Mar 28, 2005 at 08:57 UTC |