Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_perl thread: Prob w/ssl - LWP, https, openssl, Perl, Windows NT


Message #1 by jadonaldson2000@h... on Wed, 12 Sep 2001 17:42:13
     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), but am unsure of the next step. The problem program 
is listed immediately below.

#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

#output
Failed: 501 Protocol scheme 'https' is not supported

Do I need to copy some files (.lib, .dll, ???) to a path directory?  
Should I use the VC++ option instead?  If so, how do I get to the VC++ 
envrionment prompt as mentioned in the documentation?

Thanks in advance,
Andy

  Return to Index