in reply to Re: Mechanize and Bypassing SSL Certificate Check
in thread Mechanize and Bypassing SSL Certificate Check

Thanks, it works. But how come this didn't work?
$mech->ssl_opts( verify_hostname => 0 );
I thought Mechanize inherited most of the methods from LWP::UserAgent.

Because if I tried this which is from LWP::UserAgent, it works fine.
$mech->timeout( 100 );

Replies are listed 'Best First'.
Re^3: Mechanize and Bypassing SSL Certificate Check
by repellent (Priest) on Aug 26, 2011 at 05:57 UTC
    What do you mean exactly by "this didn't work"? Can you call the method ->ssl_opts on the $mech object?

    After you use WWW::Mechanize; what is the value of $LWP::UserAgent::VERSION and $WWW::Mechanize::VERSION?