Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: https javascript form

by PerlSufi (Friar)
on Jun 12, 2013 at 21:01 UTC ( #1038588=note: print w/ replies, xml ) Need Help??


in reply to Re^3: https javascript form
in thread https javascript form

see if this works:

use WWW::Mechanize; my $usr = "your_username"; my $pw = "your_password"; $mech->form_number(1); $mech->field( "ctl00$MainContent$Login1$UserName", $usr); $mech->form_number(2); $mech->field("ctl00$MainContent$Login1$Password", $pw); $mech->click(); $mech->dump_text; # for debugging


Comment on Re^4: https javascript form
Download Code
Re^5: https javascript form
by Anonymous Monk on Jun 13, 2013 at 13:49 UTC
    I have tried that but it doesn't work :-(

    Could it have something to do with the 'action' field? How do I set that in a form?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2015-07-07 02:19 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 (86 votes), past polls