- or download this
$app->{browser}->add_handler("response_done", sub { shift->dump; retur
+n });
- or download this
->SUPER::new(
tokens => \%tokens,
browser => WWW::Mechanize->new( autocheck => 0 ),
)
- or download this
my $response = eval { $app->view_restricted_resource ... };
unless( $response ){
...
$response = $app->res; # WWW::Mechanize cache it for you
}
print $response->content;