Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env perl -T
|
||||
use 5.018_002;
|
||||
use warnings;
|
||||
use LWP;
|
||||
|
||||
our $VERSION = 1.000_000;
|
||||
|
||||
my $ua = LWP::UserAgent->new(
|
||||
ssl_opts => {
|
||||
SSL_cert_file => 'certificate.pem',
|
||||
SSL_key_file => 'key.pem',
|
||||
verify_hostname => 1,
|
||||
}
|
||||
);
|
||||
my $req = HTTP::Request->new( GET => 'https://www.example.com' );
|
||||
my $res = $ua->request($req);
|
||||
if ( $res->is_success ) {
|
||||
say $res->content;
|
||||
}
|
||||
else {
|
||||
say $res->status_line;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue