if ( ! $response->is_success ) { use Data::Dumper; print Dumper($response); ... } #### ... The owner of this website (download.fosshub.com) has banned your access based on your browser\'s signature (38250110cd8b5c57-ua22). ... #### sub DownloadWebFile { # Download the $Url's file my $IAm = ( caller(0) )[3]; # Incoming: my $Url = $_[0]; my $Timeout = $_[1]; my $Cookies = $_[2]; # 'oraclelicense=accept-securebackup-cookie' my $Referer = $_[3]; # "http://usa.kaspersky.com/windows10"; my $Host = $_[4]; # "download.fosshub.com"; my $FileName = $_[5]; # File name and path to save the file to my $Caller = "$_[6]" . "$IAm"; # Outgoing: my $PageStatus = \$_[7]; $$PageStatus = UPDATE; # 2 = good download my $ua; $ua = LWP::UserAgent->new; $ua->timeout ( MaxTime2 ); $ua->show_progress ( 1 ); # 0 = do not show; 1 = show my $req = new HTTP::Request (GET => $Url ,HTTP::Headers->new( 'Referer' => 'https://www.fosshub.com/HWiNFO.html', 'User-Agent' => 'Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0' ) ); my $response = $ua->request ($req); if ( ! $response->is_success ) { $$PageStatus = DOWNLOAD_FAIL; use Data::Dumper; print Dumper($response); print STDERR " ERROR ${Caller}.GetWebPage: unable to read ", $Url, "\n"; print STDERR $response->status_line; return ""; } }