use v6;

=begin pod

=TITLE Fetch uri

=AUTHOR stmuk

You want to fetch a uri

=end pod

use LWP::Simple;

my $html = LWP::Simple.get('http://perl6.org/');

say $html;

# vim: expandtab shiftwidth=4 ft=perl6

use v6;

=begin pod

=TITLE Fetch uri

=AUTHOR stmuk

You want to fetch a uri

=end pod

use LWP::Simple;

my $html = LWP::Simple.get('http://examples.perl6.org/');

say $html;

# vim: expandtab shiftwidth=4 ft=perl6

Change URL to a real http address
Change URL to a real http address

http://perl6.org is getting redirected to https://perl6.org.