On 2020-04-07 02:15, ToddAndMargo via perl6-users wrote:
How do I read (download) a web page?  get?

Came up with this:

  # zef --force-test install HTTP::Client

$ raku -e 'use HTTP::Client; my $client=HTTP::Client.new; my $response = $client.get("http://checkip.dyndns.org/";); say $response.content;'

<html><head><title>Current IP Check</title></head><body>Current IP Address: 50.37.24.122</body></html>

Reply via email to