June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
10
Task/HTTPS-Authenticated/Perl-6/https-authenticated.pl6
Normal file
10
Task/HTTPS-Authenticated/Perl-6/https-authenticated.pl6
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