in reply to Re^8: javascript login
in thread javascript login
I put strict off and it gives no errors,It is recommended to put it back on and declare variables properly.
then i ran it and it gave line 6 unknown agent 'firefox'This is because there is no agent alias called "Firefox". Use known_agent_aliases() to get available names, for example:
$ perl -MWWW::Mechanize -E'say join ", ",WWW::Mechanize::known_agent_a +liases' Linux Konqueror, Linux Mozilla, Mac Mozilla, Mac Safari, Windows IE 6, + Windows Mozilla
and line 1900 of mechanize.pm says there is no form numbered 2Try using Data::Dumper and forms() method to get the list of forms available for WWW::Mechanize.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: javascript login
by Anonymous Monk on Aug 17, 2012 at 19:45 UTC | |
by robertw (Sexton) on Aug 18, 2012 at 23:35 UTC | |
by robertw (Sexton) on Aug 19, 2012 at 00:13 UTC | |
by Anonymous Monk on Aug 19, 2012 at 01:12 UTC | |
by robertw (Sexton) on Aug 19, 2012 at 01:52 UTC | |
|