verify_hostname => $bool When TRUE LWP will for secure protocol schemes ensure it connects to servers that have a valid certificate matching the expected hostname. If FALSE no checks are made and you can't be sure that you communicate with the expected peer. The no checks behaviour was the default for libwww-perl-5.837 and earlier releases. #### my $ua = LWP::UserAgent->new( ssl_opts => { verify_hostname => 0 }, );