a new little tool
This commit is contained in:
parent
e298d6ca5d
commit
e27ac13e68
8
code/Perl/getip.pl
Executable file
8
code/Perl/getip.pl
Executable file
@ -0,0 +1,8 @@
|
||||
#! /usr/bin/perl
|
||||
use strict;
|
||||
use LWP::UserAgent ();
|
||||
my $ua = LWP::UserAgent->new(agent => "curl");
|
||||
my $url = "https://ifconfig.io";
|
||||
my $req = HTTP::Request->new('GET' => $url);
|
||||
my $res = $ua->simple_request($req);
|
||||
print($res->content());
|
Loading…
Reference in New Issue
Block a user