use LWP; my $url = "https://example.com"; my $browser = LWP::UserAgent->new( ); my $resp = $browser->get($url); print $resp->content, "\n";