开发者

Download webpage source to a string in Perl

开发者 https://www.devze.com 2023-04-06 03:39 出处:网络
How do I do it? I would also like to use a prox开发者_运维百科y. How do I do that?use WWW::Mechanize;

How do I do it?

I would also like to use a prox开发者_运维百科y. How do I do that?


use WWW::Mechanize;

my $mech = WWW::Mechanize->new();
$mech->get("http://foo.com/bar");
my $content = $mech->res()->content();

For the proxy, see the Mechanize FAQ.

0

精彩评论

暂无评论...
验证码 换一张
取 消