alokranjan has asked for the wisdom of the Perl Monks concerning the following question:
I am wondering why its not working, though a separate Perl script is working fine to get the expiry date. Any help/assistance would be highly appreciated.use CGI qw(:standard); use CGI::Carp qw(warningsToBrowser fatalsToBrowser); use Net::SSL::ExpireDate; use strict; my $sitename; my $ed; my $expire_date; print header; print start_html("Thank You"); print h2("Thank You"); my %form; foreach my $p (param()) { $form{$p} = param($p); print "$p = $form{$p}<br>\n"; $sitename = $form{$p}; } #$sitename = "www.google.com"; chomp($sitename); $sitename =~ s/^\s+|\s+$//g; print "\nWebsite name is: $sitename.\n"; $ed = Net::SSL::ExpireDate->new( https => $sitename ); if (defined $ed->expire_date) { $expire_date = $ed->expire_date; print "$expire_date\n"; } print end_html;
Thanks, Alok
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ssl details cgi script
by noxxi (Pilgrim) on Jul 26, 2015 at 09:29 UTC | |
by alokranjan (Acolyte) on Jul 26, 2015 at 10:04 UTC | |
by alokranjan (Acolyte) on Jul 26, 2015 at 10:10 UTC | |
|
Re: ssl details cgi script
by afoken (Chancellor) on Jul 25, 2015 at 19:38 UTC | |
|
Re: ssl details cgi script
by alokranjan (Acolyte) on Jul 25, 2015 at 19:47 UTC | |
by poj (Abbot) on Jul 25, 2015 at 20:40 UTC | |
by alokranjan (Acolyte) on Jul 26, 2015 at 04:27 UTC | |
by poj (Abbot) on Jul 26, 2015 at 11:51 UTC |