in reply to Need to download the URL as html with it credentials

print $mech->content;

See CONTENT-HANDLING METHODS in WWW::Mechanize.