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.


In reply to "SSL negotiation failed" using WWW::Mechanize and Crypt::SSLeay on WinXP by mickey

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.