- or download this
$mech->credentials('username', 'password');
- or download this
$mech->credentials('perlmonks.net', '', 'username' 'password');
- or download this
#!/usr/bin/perl
...
$mech->add_handler("response_done", sub { shift->dump; return });
print Dumper($mech->get($url));