yantar has asked for the wisdom of the Perl Monks concerning the following question:
Here is what i wrote so far:
I dont understand why, but, after this i look at the what dump outputs and i see the code for the first login page, while i belive i should have reached the next page after my successful login.my $mech = WWW::Mechanize->new(); my $url = 'http://X.X.X.X/Console/login/login.aspx'; $mech->get( $url ); $mech->submit_form( form_number => 1, fields =>{ 'ctl00$ctl00$cphVeriC +entre$cphLogin$txtUser' => 'someone', 'ctl00$ctl00$cphVeriCentre$cphL +ogin$txtPW' => '12345', 'ctl00$ctl00$cphVeriCentre$cphLogin$ddlServer +s' => 'Live', button => 'Sign-In' }, ); die unless ($mech->success); $mech->dump_forms();
Could there be something with a cookie that can effect me and the login attempt?
Anythings else i am doing wrong? Appreciate you help, Yaniv
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cant get www:Mechanize to work
by Corion (Patriarch) on Jun 09, 2009 at 10:46 UTC | |
by yantar (Initiate) on Jun 09, 2009 at 11:02 UTC | |
by Corion (Patriarch) on Jun 09, 2009 at 11:11 UTC | |
by yantar (Initiate) on Jun 09, 2009 at 11:36 UTC | |
by marto (Cardinal) on Jun 09, 2009 at 11:42 UTC | |
|