I'm trying to make an https request using LWP::UserAgent
:
#!/usr/bin/perl
use strict;
use warnings;
use LWP::UserAgent;
my $login_url = 'https://www.icscards.nl/abnamrogb/login/login';
my $ssl_options = { SSL_version => 'tlsv1', verify_hostname => 0 };
my $browser = LWP::UserAgent->new(ssl_opts => $ssl_options);
$browser->cookie_jar( {} );
my $response = $browser->get($login_url);
print $response->decoded_content;
and get the following error message:
Can't connect to www.icscards.nl:443
LWP::Protocol::https::Socket: SSL connect attempt failed because of handshake problems error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure at /System/Library/Perl/Extras/5.18/LWP/Protocol/http.pm line 51.
Changing the URL to e.g. https://www.google.com/
works fine, but not the URL I want to fetch.
Worth noting: I get the same error when making a request to this URL with python.