Help for this page

Select Code to Download


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