Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^5: javascript login

by aitap (Deacon)
on Aug 17, 2012 at 06:54 UTC ( #987919=note: print w/ replies, xml ) Need Help??


in reply to Re^4: javascript login
in thread javascript login

I don't see any mistakes, does it work?

Sorry if my advice was wrong.


Comment on Re^5: javascript login
Replies are listed 'Best First'.
Re^6: javascript login
by robertw (Sexton) on Aug 17, 2012 at 17:59 UTC

    for all 4 lines it gives an error global symbol $userid requires explicit package name global symbol $password requires explicit package name global symbol $userid requires explicit package name global symbol $password requires explicit package name

    $userid = "usr"; $password = "passwd"; userid => "$userid", password => "$password"

      it gives an error global symbol $userid requires explicit package name
      Perhaps this is because you use strict and these variables are not declared?

      Sorry if my advice was wrong.
        I put strict off and it gives no errors, then i ran it and it gave line 6 unknown agent 'firefox' and line 1900 of mechanize.pm says there is no form numbered 2, How can i resolve the first error and where does it say the form of html? sorry I am slow in this but I appreciate your help very much:)
        my $mech = WWW::Mechanize->new(); $mech->agent_alias( 'Firefox' ); $userid = "usr"; $password = "password"; $mech->get( "https://login.binck.nl/klanten/Login.aspx?ReturnUrl=%2fkl +anten%2fdefault.aspx" ); $mech->submit_form( form_number => 2, fields => { userid => "$userid", password => "$password" }, button => "btnSignon" );

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://987919]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2015-07-30 23:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls