[英]How do I configure WWW::Mechanize to work through a proxy?
I sit behind a proxy and have HTTP and WWW::Mechanize working OK locally. 我坐在代理后面,并具有HTTP和WWW :: Mechanize在本地正常工作。
But advice || 但是建议|| pointers as to how to get through a proxy please.
有关如何通过代理的指示,请。
Regards Ian 问候伊恩
WWW::Mechanize is an extension of LWP::UserAgent : WWW :: Mechanize是LWP :: UserAgent的扩展:
WWW::Mechanize
is a proper subclass ofLWP::UserAgent
and you can also use any ofLWP::UserAgent
's methods.WWW::Mechanize
是LWP::UserAgent
的适当子类,您也可以使用LWP::UserAgent
的任何方法。
So you can just use ->env_proxy
, or ->proxy
— as described in the manual . 因此,您可以按照手册中的说明使用
->env_proxy
或->proxy
。
Excellent clue depesz||cjm. 出色的提示depesz || cjm。
It was actually a matter of "rtfm". 这实际上是“ rtfm”的问题。 Forgot the need for the environment variable "HTTP_PROXY".
忘记了环境变量“ HTTP_PROXY”的需要。 Do not get old you guys !!
你们不要老了!
Ian 伊恩
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.