$mech->credentials($username,$pwd); $mech->get($addr);
So you $mech object has the credentials before retrieving the page.
update: s/options/object/. silly mistake..
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re: Howto fill in username and password in a popup cookie with Perl
by shmem
in thread Howto fill in username and password in a popup cookie with Perl
by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |