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

前端 未结 3 1056
死守一世寂寞
死守一世寂寞 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:31

    In case someone stumbles over this old question: The situation has changed in the recent years.

    • starting with version 6 LWP uses IO::Socket::SSL as a backend
    • IO::Socket::SSL does not provide its own proxy hacks like Crypt::SSLeay does and LWP https proxy support as documented (e.g. using proxy method or env_proxy) was broken.
    • with version 6.06 of both LWP::UserAgent and LWP::Protocol::https (which are now seperate distributions!) https proxy works as expected and documented
    • for older versions of LWP one can use Net::SSLGlue::LWP

提交回复
热议问题