How come this webpage gives me an internal server error when I try to scrape it with Mechanize
my $mech = WWW::Mechanize->new();
$mech->get( https://www.aabenraa.dk/politik-og-dialog/politiske-udvalg
+/arbejdsmarkedsudvalget/medlemmer );
my $html_udv = $mech->content;
And some html containing the line: "Object reference not set to an instance of an object" When I try to scrape the same webpage with UserAgent?
my $ua = LWP::UserAgent->new( ssl_opts => { verify_hostname => 0 },);
my $res = $ua->get('https://www.aabenraa.dk/politik-og-dialog/politisk
+e-udvalg/arbejdsmarkedsudvalget/medlemmer');
my $html = $res->content;
What can I do to get the HTML of the webpage and not get any errors?