in reply to Getting past a password prompt in perl
Use WWW::Mechanize. It's a subclass of LWP::UserAgent, so you get all of LWP::UA's functionality and then some. Perhaps something like this would work for you:
use strict; use warnings; use WWW::Mechanize; my $mech = WWW::Mechanize->new; $mech->credentials("www.xxx.com:8082", "Tomcat Manager App Realm yada" +, "username", "password"); $mech->get("http://www.xxx.com:8082/manager");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting past a password prompt in perl
by mikes300 (Initiate) on Feb 05, 2009 at 17:21 UTC | |
by missingthepoint (Friar) on Feb 08, 2009 at 04:28 UTC | |
by Anonymous Monk on Mar 02, 2011 at 17:44 UTC |