CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
could i get some help please with mechanize and https :)

 



gerble1000
User

Oct 28, 2012, 10:29 AM

Post #1 of 1 (1332 views)
could i get some help please with mechanize and https :) Can't Post

ok here is my sintax

Code
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


Code
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

Code
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.

Code
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)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives