in reply to Re^3: Getting past a password prompt in perl
in thread Getting past a password prompt in perl
my $mech = WWW::Mechanize->new; my $username = "user"; my $password = "pass"; my $host="somehost"; my $port="12001" $mech->credentials("$host:$port", "Tomcat Manager Application", "$ +username", "$password"); $mech->get("$url/manager/list"); print Dumper $mech->response; # print $mech->content();
|
|---|