in reply to creating a useful browser from automation

Hi datz_cozee75. You're in luck because Corion, the author of HTML::Display, is here almost every day. I've never used it, but I have used WWW::Mechanize, and both it and apparently HTML::Display allow you to set the base url from which all links in your content are relative.

The below script works for me on my Macbook, launching chrome and displaying the page correctly I think:

#!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; use HTML::Display; my $base_url = 'https://www.huntington.com/'; my $spider = WWW::Mechanize->new( autocheck => 1 ); $spider->get( $base_url ); die( "$base_url: " . $spider->response->status_line ) unless $spider-> +success; my $browser = HTML::Display->new(); $browser->display( html => $spider->content( base_href => $base_url ) +); __END__
Hope this helps!

The way forward always starts with a minimal test.