( $page, $response, %reply_headers )
= https_get(
- { 'host' => 'secure.sisd.com',
+ { 'host' => 'www.fortify.net',
'port' => 443,
- 'path' => '/freeside/index.html',
- 'args' => { 'field' => 'value' },
- #'args' => [ 'field'=>'value' ], #order preserved
+ 'path' => '/sslcheck.html',
},
);
( $page, $response, %reply_headers )
= https_post(
- 'host' => 'secure.sisd.com',
+ 'host' => 'www.google.com',
'port' => 443,
- 'path' => '/freeside/index.html',
+ 'path' => '/accounts/ServiceLoginAuth',
'args' => { 'field' => 'value' },
#'args' => [ 'field'=>'value' ], #order preserved
);
if ( $ssl_module eq 'Net::SSLeay' ) {
+ no warnings 'uninitialized';
+
import Net::SSLeay qw(get_https make_headers);
my $headers = make_headers(%headers);
if ( $ssl_module eq 'Net::SSLeay' ) {
+ no warnings 'uninitialized';
+
import Net::SSLeay qw(post_https make_headers make_form);
my $headers = make_headers(%headers);
- if ($opts->{debug}) {
- no warnings 'uninitialized';
- $Net::SSLeay::trace = $opts->{debug};
- }
+ $Net::SSLeay::trace = $opts->{'debug'}
+ if exists $opts->{'debug'} && $opts->{'debug'};
my $raw_data = ref($post_data) ? make_form(%$post_data) : $post_data;