HTTP: Difference between revisions
m
→{{header|Raku}}: Remove unnecessary and deprecated pragma
Thundergnat (talk | contribs) m (→{{header|Raku}}: Remove unnecessary and deprecated pragma) |
|||
Line 2,358:
Using LWP::Simple from [https://modules.raku.org/search/?q=LWP%3A%3ASimple the Raku ecosystem].
<lang perl6>use
print LWP::Simple.get("http://www.rosettacode.org");
Line 2,367 ⟶ 2,365:
or, without LWP::Simple:
<lang perl6>my $socket = IO::Socket::INET.new(host => "www.rosettacode.org",▼
▲my $socket = IO::Socket::INET.new(host => "www.rosettacode.org",
port => 80,);
$socket.print("GET / HTTP/1.0\r\n\r\n");
|