Re: Perl, LWP and HTTPS --- Problem solved
"Alastair Mackenzie" <[email protected]> Thu, 10 Oct 2013 09:39:34 +0100
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <23D44181B9594A53B0BBDA287E4F3C65@Desktop5150> |
------=_NextPart_000_004F_01CEC59C.A0D2C260 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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! Cheers, Alastair Phone: +44-(0)1325-333333 Mobile: +44-(0)7966-312980 Email: [email protected] ----- Original Message -----=20 From: Alastair Mackenzie=20 To: [email protected]=20 Sent: 09 October 2013 22:46 Subject: Perl, LWP and HTTPS Hi. 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 5.8.8.817. 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: [email protected] ------=_NextPart_000_004F_01CEC59C.A0D2C260 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META name=3DGENERATOR content=3D"MSHTML 8.00.6001.23532"> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT size=3D2>Just a quick note to let you know that I've = installed=20 ActivePerl 5.16 and found --- to my great relief --- that it includes = support=20 for HTTPS. So I'm up and running!</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2>Cheers,</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2>Alastair</FONT></DIV> <DIV><FONT size=3D2>Phone: = +44-(0)1325-333333</FONT></DIV> <DIV><FONT size=3D2>Mobile: = +44-(0)7966-312980</FONT></DIV> <DIV><FONT size=3D2>Email: <A=20 href=3D"mailto:[email protected]">[email protected]</A></FONT><= /DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV style=3D"FONT: 10pt arial">----- Original Message -----=20 <DIV style=3D"BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A=20 [email protected] = href=3D"mailto:[email protected]">Alastair=20 Mackenzie</A> </DIV> <DIV><B>To:</B> <A [email protected]=20 href=3D"mailto:[email protected]">[email protected]</A> </DIV> <DIV><B>Sent:</B> 09 October 2013 22:46</DIV> <DIV><B>Subject:</B> Perl, LWP and HTTPS</DIV></DIV> <DIV><BR></DIV> <DIV>Hi.</DIV> <DIV> </DIV> <DIV>I'd like to use Perl to access some web sites. I've=20 been reading 'Perl & LWP' --- which has been very helpful and = seems to=20 make sense --- and now I'd like to get on with some = scripting. =20 However, I've run into a bit of a problem. The main URL that I'm=20 interested in accessing uses the HTTPS protocol, and my version of LWP = doesn't=20 support HTTPS. When I try to run my script the status_line comes = back as=20 "501 Protocol scheme 'https' is not supported (Crypt:::SSLeay not=20 installed)". If I add "use Crypt::SSLeay;" to my script I get an = error=20 message saying "Can't locate Crypt/SSLeay in @INC".<BR><BR>I gather that = I need=20 either Crypt::SSLeay --- or possibly LWP-Protocol-https = --- but I=20 don't know how find out exactly what I need or how to get it. Can = you=20 point me in the right direction, please?<BR><BR>I'm using ActivePerl=20 5.8.8.817.</DIV> <DIV> </DIV> <DIV>I'm reasonably computer literate, but I don't have any experience = of=20 compiling packages, so I'll need step-by-step instructions (or a book or = on-line=20 course on this subject).</DIV> <DIV> </DIV> <DIV>>> Which module(s) do I need?</DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV>>> How do I go about getting and installing the = necessary=20 module(s)?</DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV>>> My version of ActivePerl seems to include something = called=20 'PPM'. Is that relevant? If so, how can I get step-by-step=20 instructions on how to use it?</DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV>>> Do I need OpenSSL? If so, how can I get = step-by-step=20 instructions on how to obtain and install it?</DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV>>> Would it make any difference if I upgrade = to=20 ActivePerl 5.16?<BR><BR>Thanks for your help,<BR><BR>Alastair = Mackenzie</DIV> <DIV>Phone: +44-(0)1325-333333</DIV> <DIV>Mobile: +44-(0)7966-312980</DIV> <DIV>Email: <A=20 href=3D"mailto:[email protected]">[email protected]</A></DIV></= BODY></HTML> ------=_NextPart_000_004F_01CEC59C.A0D2C260--