Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
10
Task/HTTPS-Authenticated/Raku/https-authenticated.raku
Normal file
10
Task/HTTPS-Authenticated/Raku/https-authenticated.raku
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
use HTTP::UserAgent;
|
||||
|
||||
my $username = 'username'; # my username
|
||||
my $password = 'password'; # my password
|
||||
my $address = 'http://192.168.1.1/Status_Router.asp'; # my local wireless router
|
||||
|
||||
my $ua = HTTP::UserAgent.new;
|
||||
$ua.auth( $username, $password );
|
||||
my $response = $ua.get: $address;
|
||||
say $response.is-success ?? $response.content !! $response.status-line;
|
||||
Loading…
Add table
Add a link
Reference in a new issue