in reply to Need LWP::UserAgent --header help

First: your sample code is not a SSCCE. I had to add some use statements, and declare some variables to make it strict compliant. Examining the response as
print STDERR " ERROR ${Caller}.GetWebPageWithReferer: unable to read " +, $Url, " because ", $response->content, "\n";

showed the following among others:

Access denied | www.emsisoft.com used Cloudflare to restrict access The owner of this website (www.emsisoft.com) has banned your access ba +sed on your browser's signature (blahblahblah).

I tried to supply a more friendly user agent identifier to the constructor:

$ua = LWP::UserAgent->new(agent => 'Mozilla');

and voilą: it started working. It seems you might be breaking the law, though - check their Terms of use.

BTW, you might need LWP::Protocol::https to access https sites.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: Need LWP::UserAgent --header help
by Todd Chester (Scribe) on Jan 30, 2017 at 04:09 UTC
    $ua = LWP::UserAgent->new(agent => 'Mozilla');

    did the trick. Thank you!