- or download this
use strict ;
use warnings ;
- or download this
my $xml = XML::Twig->new()->parsefile('example.xml') ;
$xml-> ... ;
$xml -> get_xpath('//ipaddress',0) -> set_text("<IP HERE>") ;
- or download this
my $uri="https://hostname:9060/ers/config/networkdevice/<ID HERE>";
my $req = HTTP::Request->new( ...
$req->content($xml->sprint) ; # Strange, why is there another $xml->sp
+rint here?
$req->...
- or download this
my $res = $ua->request( $req ) ;
# Check the outcome of the response
...
} else {
print $res->status_line, "\n";
}