in reply to Re^2: Headers and WWW::Mechanize
in thread Headers and WWW::Mechanize
As long as you don't tell us what that "other error" with using ->fields is, we can't help you. The WWW::Mechanize documentation says to use fields:
$mech->submit_form( form_number => 3, fields => { username => 'mungo', password => 'lost-and-alone', } );
Personally, I would set the fields in the HTML form and then simply submit the form:
my $form = $mech->form_name('aspnetForm'); $form->value('__EVENTTARGET' => 'ctl00$cpMain$pagerTop'); ... and so on $mech->submit();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Headers and WWW::Mechanize
by Anonymous Monk on Jan 31, 2007 at 01:03 UTC | |
by Corion (Patriarch) on Jan 31, 2007 at 07:53 UTC |