mickey has asked for the wisdom of the Perl Monks concerning the following question:
This is a pretty straight-forward question, so I'm hoping there might be an easy answer as well.
I'm trying to build a little screen-scraping script using WWW::Mechanize on WinXP. I need to access some HTTPS sites, so I've installed Crypt::SSLeay using ppm3. I'm using ActiveState Perl 5.6.1, and unfortunately getting a better version will be involve a great deal of trauma.
Here's a test script:
#!/usr/bin/perl use strict; use warnings; use LWP::UserAgent; my $url = 'https://www.helsinki.fi'; my $ua = LWP::UserAgent->new; my $response = $ua->get($url); $response->is_success or die "Failed to GET '$url': ",$response->status_line; print $response->as_string;
When I run this, the response is:
Failed to GET 'https://www.helsinki.fi/': 500 SSL negotiation failed: +at P:\Perl\bin/ssltest.bat line 15.
Does anyone know what problem this error message indicates?
I installed the necessary libraries, libeay32.dll and ssleay32.dll, in C:\Perl\bin during the ppm3 installation of Crypt::SSLeay. I don't have access to a compiler, so I can't compile OpenSSL myself.
Any and all advice is appreciated! Thanks very much.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "SSL negotiation failed" using WWW::Mechanize and Crypt::SSLeay on WinXP
by talexb (Chancellor) on Mar 03, 2005 at 22:35 UTC | |
|
Re: "SSL negotiation failed" using WWW::Mechanize and Crypt::SSLeay on WinXP
by inman (Curate) on Mar 04, 2005 at 09:38 UTC | |
by mickey (Acolyte) on Mar 04, 2005 at 17:10 UTC |