in reply to Re: Getting past a password prompt in perl
in thread Getting past a password prompt in perl
use WWW::Mechanize; use HTTP::Request; sub httprequest { my $mech = WWW::Mechanize->new(autocheck => 1); $mech->credentials("servername:8082", "Tomcat Manager", "username", "p +assword"); $mech->get("http://servername:8082/manager/status/all"); print $mech->content();
$ perl to*
Error GETing http://stltcat04:8082/manager/status/all: Unauthorized at tomcatQA.pl line 13
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Getting past a password prompt in perl
by missingthepoint (Friar) on Feb 08, 2009 at 04:28 UTC | |
by Anonymous Monk on Mar 02, 2011 at 17:44 UTC |