$req->header(Accept => "text/html, */*;q=0.1"); #### $req->header(Accept => "*/*; q=0.1, text/html"); #### use LWP::Simple; #get ZIP file and store it locally as 'download.zip' getstore('http://localhost/testfile.zip', 'download.zip' ); #print HTML file to STDOUT my $content = get('http://localhost/dbconnect/instructions.htm'); if (defined $content) { # it worked! print $content,"\n"; } else { # there was a problem! warn 'Failed getting HTML file' }