
gerble1000
User
Oct 28, 2012, 10:29 AM
Post #1 of 1
(688 views)
|
|
could i get some help please with mechanize and https :)
|
Can't Post
|
|
ok here is my sintax
my $mech = WWW::Mechanize->new( autocheck => 0, timeout => 10, ); $mech->get($wanted_url); now this has worked fine for months. untill orange updated there website. all my script does is log me in and show my balance. i now get this error message
Can't connect to wassup.orange.co.uk:443 (certificate verify failed) LWP::Protocol::https::Socket: SSL connect attempt failed with unknown error error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed at C:/strawberry/perl/site/lib/LWP/Protocol/http.pm line 51. could somebody shed some light please i have just installed LWP::Protocol::https and that does not seem to help here is my list of modules
use WWW::Mechanize; use LWP::Simple; use URI::URL; use LWP::UserAgent; use HTTP::Request; use HTTP::Request::Common; use HTTP::Request::Form; use HTML::TreeBuilder 3.0; use HTTP::Cookies; use HTML::Template; use LWP::Protocol::https; ok i managed to pay somebody again to fix my code. here is what i done.
use WWW::Mechanize; use URI::URL; use HTTP::Request; use HTTP::Request::Common; use HTTP::Request::Form; use HTML::TreeBuilder 3.0; use HTTP::Cookies; use HTML::Template; my $mech = WWW::Mechanize->new( autocheck => 0, timeout => 10, ssl_opts => { verify_hostname => 0, }, ); $mech->get($wanted_url);
(This post was edited by gerble1000 on Oct 30, 2012, 2:57 AM)
|