WWW :: Mechanize-> get an error (HTTPS is not supported)

I am trying to use WWW :: Mechanize to log in to Yahoo. However, when I try to get the login page, it gives an error

Error GETing https://login.yahoo.com/config/login_verify2?&.src=ym: Protocol scheme 'https' is not supported (LWP::Protocol::https not installed)

I installed Crypt :: SSLeay, which I thought should have taken care of HTTPS requests. Why do this?

I even say “use Crypt :: SSLeay” at the beginning of the script, and it does not give an error regarding the fact that it is not installed.

Going to YA! (http) and then click the "Sign In" (https) help link?

Any help or advice would be appreciated.

EDIT: I tried installing LWP :: Protocol: https, but that failed.

EDIT AGAIN: Installing Crypt :: SSLeay with test results leads to the same failure. -_-

EDIT 3RD TIME: Thanks for helping me guys. I'm sorry to be late with the reply. This is Redhat 9, and the whole installation is very poorly screwed.

My initial goal was to simply install WWW :: Mechanize to be able to log in to Yahoo. Perl 5.8.7 was installed for sysadmin (our teacher), which caused an isntallation failure - due to the inability of LWP :: UserAgent to update itself in versions under 5.8.8.

Then I installed Perl 5.10.1 in my home directory using App :: perlbrew and I successfully installed Mech. However, this created a lot of compatibility issues using the old modules that I installed (using 5.8.7). Now I'm not sure how to delete everything, and I have only 15 megabytes of disk space left.

OpenSSL , OpenSSL , tarball . -, .

. root, - . , , , HTTPS.

, yum- opensl-devel, root. - , , , .

Net:: SSLeay .

Mech - ( 5.8.7), ... ugh...

4TH EDIT: Net:: SSLeay . : . SSL.

5- : YAAAAAAAAAAAAAAAAAYYY! openssl-devel, !!!!!!!!

+3
2

. :

1) OpenSSL 2) Net:: SSLeay Perl-

+2

WWW:: LWP:: UserAgent ( ) URL-. , LWP:: Protocol:: https https-.

+3

All Articles