in reply to Re: Porting wget commandline switches to LWP
in thread Porting wget commandline switches to LWP

WWW::Mechanize is a subclass of LWP::UserAgent - so can use all of its methods.

You can do something like:
my $agent = WWW::Mechanize->new(); $agent->credentials($uri->host_port, "TheRealm", "user", "pass");

See LWP::UserAgent for details on credentials.