Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I am using POP3Client to login to email account and Mechanize to get a weblink. Having problems to have them both working.
The functionality in my script using Mechanize works as expected if either IO::SOCKET::SSL or NET::SSLeay is not installed. However, if I install both IO::SOCKET::SSL and NET::SSLeay, then the Mechanize functionality does not work. Since my script also has functionality that uses POP3Client, I need both IO::SOCKET::SSL and NET::SSLeay.
Any suggestions to have both POP3Client and Mechanize working with both IO::SOCKET::SSL and NET::SSLeay installed?
Here are the details from the script.
my $pop = new Mail::POP3Client( USER => "user_name", PASSWORD => "password", HOST => "mail.xxxxx.com", USESSL => 1, PORT => 995, DEBUG => 0, ); my $num = $pop->Count; if($num < 0) { print "Error could not connect\n"; } elsif ($num == 0){ print "================LOGIN SUCESS!\n"; } my $url = "http://weblink"; my $m; $m = WWW::Mechanize->new(autocheck=>1); $m->proxy('http','http://proxy_server'); $m->proxy('https', undef); $m->credentials( "user_name", "password" ); $m->get($url); #<============ DIES HERE my $link = $m->find_link( text => "A string" ); if( !defined( $link ) ) { print( "Error accessing $url!\n" ); die; }
Thanks,
Madhu
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: IO::Socket::SSL incompatibility with WWW::Mechanize
by syphilis (Archbishop) on Jul 09, 2013 at 01:22 UTC | |
by Madhuk (Initiate) on Jul 09, 2013 at 01:45 UTC | |
by syphilis (Archbishop) on Jul 09, 2013 at 03:09 UTC | |
by Madhuk (Initiate) on Jul 11, 2013 at 19:11 UTC | |
Re: IO::Socket::SSL incompatibility with WWW::Mechanize
by runrig (Abbot) on Jul 11, 2013 at 19:59 UTC | |
by Madhuk (Initiate) on Jul 11, 2013 at 23:22 UTC | |
by runrig (Abbot) on Jul 12, 2013 at 00:28 UTC | |
by Madhuk (Initiate) on Jul 12, 2013 at 00:37 UTC | |
by runrig (Abbot) on Jul 17, 2013 at 18:52 UTC |