in reply to Re^2: HTTPS connection problems WWW::Mechanize , LWP
in thread HTTPS connection problems WWW::Mechanize , LWP

No you don't. Corion said that you need to specify this within a BEGIN block, as per his example.

  • Comment on Re^3: HTTPS connection problems WWW::Mechanize , LWP

Replies are listed 'Best First'.
Re^4: HTTPS connection problems WWW::Mechanize , LWP
by vishy_acts (Novice) on Apr 01, 2011 at 13:56 UTC
    please check my reply .

    Here is the updated code and same error.

    #!/usr/bin/perl use strict; BEGIN { $ENV{HTTPS_PROXY} = 'my_proxy:port'; }; use WWW::Mechanize; use Crypt::SSLeay; my $mech = WWW::Mechanize->new(autocheck => 1,noproxy => 1); $mech->cookie_jar(HTTP::Cookies->new);