jczeus has asked for the wisdom of the Perl Monks concerning the following question:
Tried to execute the following commands, recorded with HTTP::Recorder:
$agent->form_number(1);
$agent->field('password', 'xxx');
$agent->field('login_name', 'xxx');
$agent->click('login');
That doesn't work, however. I traced the requests made by the browser and the script with Wireshark, and based on that I made the following modification:
$agent->field( login => 'Submit+Query' );
$agent->click('login');
That works, but why?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Click button with WWW::Mechanize
by choroba (Cardinal) on Mar 11, 2016 at 14:56 UTC | |
by jczeus (Monk) on Mar 11, 2016 at 15:19 UTC | |
by thomas895 (Deacon) on Mar 12, 2016 at 06:09 UTC | |
by beech (Parson) on Mar 12, 2016 at 07:50 UTC |