I would like to access a https: url with PERL to retreive the source from that site.
What is the proper way to do this?
I have used the following:
#!/usr/bin/perl
use strict;
use warnings;
use LWP::Simple;
checkit();
sub checkit {
my $url = 'https://url.that.i.want';
my $content = get($url);
my @data = split (/\n/, $content);
foreach my $line (@data) {
print "$line";
}
}
I get the following error:
501 protocol scheme 'https' is not supported.
along with the url that i requested printed to the screen.
Any suggestions?
Thanks