【发布时间】:2016-04-12 06:22:59
【问题描述】:
当我尝试使用WWW::Mechanize::Firefox 发出->get(URL) 请求时,如何正确使用超时?
my $mech = WWW::Mechanize::Firefox->new(timeout => 10); 似乎不起作用
【问题讨论】:
-
You're not the first one to wonder about this. 不幸的是,W::M::F 似乎不支持此功能,因此您可能必须自己使用
alarm实现超时。
标签: perl firefox mechanize www-mechanize