Link to home
Start Free TrialLog in
Avatar of magento
magento

asked on

perl ssl

Hi ,

I have a http site .

Many of my linux daemon using the perl.

I have all the ssl packages .I need a way to use ssl using perl.

Thanks
Avatar of Justin Mathews
Justin Mathews

You can use LWP Perl module to do all http and https transfers. See example below. Check LWP documentation for details at:

http://search.cpan.org/~gaas/libwww-perl-5.837/lib/LWP.pm




use LWP;
my $browser = LWP::UserAgent->new;

my $response = $browser->get("https://www.yoururl.com/");

die "$url error: ", $response->status_line
   unless $response->is_success;

print $response->content;

Open in new window

Avatar of magento

ASKER

jmatix,

I understand ,but when i am trying to use https ,i am getting error like (no ssl found in the IO ) please advice.
ASKER CERTIFIED SOLUTION
Avatar of Justin Mathews
Justin Mathews

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial