Task

Access and print a URL's content (the located resource) to the console.

There is a separate task for HTTPS Requests.




use strict; use warnings;
require 5.014; # check HTTP::Tiny part of core
use HTTP::Tiny;
 
print( HTTP::Tiny->new()->get( 'http://rosettacode.org')->{content} );