I'm trying to access an https page using the WWW::Mechanize library in perl. Here's what I have:
#!/usr/local/bin/perl -w
use strict;
use lib '/home/perl_modules/libwww-perl-5.836/lib';
use lib '/home/perl_modules/WWW-Mechanize-1.72/lib';
use lib '/home/perl_modules/HTML-Tree-5.03/lib';
use lib '/home/perl_modules/Crypt-SSLeay-0.64/lib';
use WWW::Mechanize;
my $m = WWW::Mechanize->new();
my $url = "http://alumni.nd.edu";
my $alias = "Linux Mozilla";
$m->agent_alias($alias);
$m->follow_link(url => "/s/1210/start.aspx?sid=1210&gid=1&pgid=3&cid=40");
Here is the output:
Error GETing https://securelb.imodules.com/?sid=1210&gid=1&pgid=3&cid=40&returnurl=http%3a%2f%2falumni.nd.edu%2f: Server closed connection without sending any data back at www_mech_test.pl line 17
After reading some help pages about WWW::Mechanize, I tried setting an alias and including the Crypt-SSLeay module, but I'm still getting the above error. What am I missing? This is running under RHEL 5.5.