How do I configure WWW::Mechanize to work behind a proxy and https?

前端 未结 3 1051
死守一世寂寞
死守一世寂寞 2021-01-07 13:03

I\'ve written Perl code using WWW::Mechanize to retrieve a webpage. When I retrieve http webpages it works fine but it doesnt work for https. I\'ve checked and I have the Cr

3条回答
  •  无人及你
    2021-01-07 13:19

    Apparently, I needed to add the following in my file

    $ENV{'HTTPS_PROXY'} = 'http://proxy:port/';
    

    for Crypt::SSLeay

提交回复
热议问题