See CONTENT-HANDLING METHODS in WWW::Mechanize.
In reply to Re: Need to download the URL as html with it credentials by daxim in thread Need to download the URL as html with it credentials by SriniK