Posted on 2009-06-28 01:22:21-07 by jgormley in response to 11066
Re: Help with Login Script - Input type image
I figured it out.... Here is the code that I got to work... in case someone needs it..
#!/usr/bin/perl use warnings; use strict; use WWW::Mechanize; my $username = 'fakename'; my $password = 'fakepassword'; my $LoginUrl = 'http://www.betterinvesting.org/Members'; my $ticker = 'ibm'; my $ExpUrl = "http://tools.betterinvesting.org/CR/Expanded.aspx?ticker=$ticker"; my $mech = WWW::Mechanize->new(autocheck => 1); $mech->get( $LoginUrl ); $mech->form_name("aspnetForm"); $mech->set_visible( $username, $password ) ; $mech->click('ctl00$ContentPlaceHolder1$LoginButton');
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.