Hi,
I don't think LWP supports 'https' protocol. Note that '$req' is a
'HTTP::Request' (not 'HTTPS::Request) object.
You'll need to install 'Net::SSLeay' or 'Crypt::SSLeay' modules.
Cheers,
Rob
----- Original Message -----
From: "Andy Donaldson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 14, 2001 8:48 PM
Subject: Trouble with HTTPS: and PERL
> I apologize for what I'm sure is a basic
> question. I'm trying to automate a testing script
> that accesses an https:// site under Windows NT
> using ActivePerl. I've have the latest version
> of ActiverPerl and to my knowledge the latest
> version of openssl (openssl-engine-0.9.6b). I've
> successfully compiled and linked the openssl code
> using GNU C (Mingw32) GNU C (Cygwin32), and VC++ w/NASM,
> but am not apparently copying the right files to the right
> place(s). In each case, I get "501 Protocol scheme
> 'https' is not supported" when running the following
> perl code.
>
> #Start of Program
> use LWP::UserAgent;
> my $ua = LWP::UserAgent->new;
> my $req = HTTP::Request->new(GET => 'https://www.helsinki.fi/');
> my $res = $ua->request($req);
> if ($res->is_success) {
> print $res->as_string;
> } else {
> print "Failed: ", $res->status_line, "\n";
> }
> #End of progerm
>
>
> Any hints or suggestions would be greatly appreciated!
> Thanks in advance,
> Andy Donaldson
>
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> User Support Mailing List [EMAIL PROTECTED]
> Automated List Manager [EMAIL PROTECTED]
>
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]