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

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

    I've seen in your related Mechanize question that you call the proxy method with only the http and ftp schemes. Try again with https included.

    It's probably more useful to set up the proxy environment variables since then all programs can take advantage of this central configuration instead of configuring proxies for each program separately. Do not forget https_proxy. Call the env_proxy method instead of proxy to use them.

提交回复
热议问题