in reply to Re: LWP::Simple not getting content
in thread LWP::Simple not getting content

Thanks for your reply. I switched over to LWP::UserAgent and successfully used the following code

my $url = 'https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.x +ml?025a000c2e476c719095c900b9c8b5e4'; my $ua = LWP::UserAgent->new( ssl_opts => { SSL_verify_mode => 'SSL_VERIFY_NONE'}, ); $ua->agent('Mozilla/4.0 (compatible; MSIE 5.12; Mac_PowerPC)' ); my $response = $ua->get($url); if ($response->is_success) { print $response->decoded_content; # or whatever } else { die $response->status_line; }