develooper Front page | perl.libwww | Postings from October 2013

Re: Perl, LWP and HTTPS --- Problem solved

Alastair Mackenzie
October 11, 2013 00:26
Re: Perl, LWP and HTTPS --- Problem solved
Message ID:
Just a quick note to let you know that I've installed ActivePerl 5.16 and found --- to my great relief --- that it includes support for HTTPS.  So I'm up and running!


Phone:    +44-(0)1325-333333
Mobile:    +44-(0)7966-312980

----- Original Message ----- 
From: Alastair Mackenzie 
Sent: 09 October 2013 22:46
Subject: Perl, LWP and HTTPS


I'd like to use Perl to access some web sites.  I've been reading 'Perl & LWP' --- which has been very helpful and seems to make sense --- and now I'd like to get on with some scripting.  However, I've run into a bit of a problem.  The main URL that I'm interested in accessing uses the HTTPS protocol, and my version of LWP doesn't support HTTPS.  When I try to run my script the status_line comes back as "501 Protocol scheme 'https' is not supported (Crypt:::SSLeay not installed)".  If I add "use Crypt::SSLeay;" to my script I get an error message saying "Can't locate Crypt/SSLeay in @INC".

I gather that I need either Crypt::SSLeay --- or possibly LWP-Protocol-https --- but I don't know how find out exactly what I need or how to get it.  Can you point me in the right direction, please?

I'm using ActivePerl

I'm reasonably computer literate, but I don't have any experience of compiling packages, so I'll need step-by-step instructions (or a book or on-line course on this subject).

>>  Which module(s) do I need?

>>  How do I go about getting and installing the necessary module(s)?

>>  My version of ActivePerl seems to include something called 'PPM'.  Is that relevant?  If so, how can I get step-by-step instructions on how to use it?

>>  Do I need OpenSSL?  If so, how can I get step-by-step instructions on how to obtain and install it?

>>  Would it make any difference if I upgrade to ActivePerl 5.16?

Thanks for your help,

Alastair Mackenzie
Phone:    +44-(0)1325-333333
Mobile:    +44-(0)7966-312980
Email: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About