!/usr/bin/perl use warnings; use strict; use Net::SSLeay qw(post_https); my $$hostIp = "xx.xx.xx.xx" my $hostPort = "8443" my $postCommand = "/postRf/string"; my $http_method = 'plain/text'; my $path_to_crt7 = 'pathToCert.pem'; my $path_to_key8 = 'pathToKey.pem'; my ($page, $response, %reply_headers) = post_https($hostIp, $hostPort, $postCommand, '', $http_method, $path_to_crt7, $path_to_key8 ); print $page . "\n"; print $response . "\n";