in reply to problem login using WWW::Mechanize
Then use the submit_form example from the WWW::Mechanize documentation (which your first attempt seems to be based on):
This seems to work as it returns a page with the text: "The username and password you entered does not match a registered user."use strict; use warnings; use WWW::Mechanize; my $m = WWW::Mechanize->new( autocheck => 1 ); $m->get("https://www.bittorrent.com/account/signin"); $m->submit_form( form_number => 2, fields => { username => 'mungo', password => 'lost-and-alone', } ); print $m->content;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: problem login using WWW::Mechanize
by shekarkcb (Beadle) on Jun 10, 2008 at 06:29 UTC | |
by Anonymous Monk on Jun 10, 2008 at 07:34 UTC | |
by shekarkcb (Beadle) on Jun 10, 2008 at 12:25 UTC | |
by Anonymous Monk on Jun 10, 2008 at 16:26 UTC |