cormanaz has asked for the wisdom of the Perl Monks concerning the following question:

Howdy Bros. I am trying to access the Twitter login page using Mech like so
use strict; use WWW::Mechanize; my $mech = WWW::Mechanize->new(); my $loginpage = 'https://twitter.com/sessions'; $mech->get($loginpage);
When I run this, I get response code 501 and a message "Protocol scheme 'https' is not supported (Crypt::SSLeay not installed)." But PPM tells me that Crypt::SSLeay is indeed installed. Do I have to USE it explicitly or something?

Thanks...

Steve

Replies are listed 'Best First'.
Re: WWW::Mechanize trouble reading HTTPS page
by Lawliet (Curate) on Nov 28, 2008 at 20:53 UTC
    But PPM tells me that Crypt::SSLeay is indeed installed. Do I have to USE it explicitly or something?

    Give it a shot :-)

    The documentation says that you do not need to explicity use it (or at least the example does not use it). Perhaps reinstall and check for errors.

    Updated with links.

    I'm so adjective, I verb nouns!

    chomp; # nom nom nom

Re: WWW::Mechanize trouble reading HTTPS page
by almut (Canon) on Nov 28, 2008 at 22:12 UTC

    As already said, you do not have to explicitly use Crypt::SSLeay.  OTOH, what happens if you do — does it fail?  If so, the error message might indicate why it doesn't work despite being installed...  AFAIK, the normal attempt to load the module (under the hood, by LWP::UA, that is) would fail silently.

Re: WWW::Mechanize trouble reading HTTPS page
by cormanaz (Deacon) on Nov 28, 2008 at 22:51 UTC
    Turns out it was an older version of Crypt::SSLeay. An upgrade did the trick.