LWP::UserAgent(3) User Contributed Perl Documentation LWP::UserAgent(3)
NAME
LWP::UserAgent - Web user agent class
SYNOPSIS
require LWP::UserAgent;
my $ua = LWP::UserAgent->new;
$ua->timeout(10);
$ua->env_proxy;
my $response = $ua->get('http://search.cpan.org/');
if ($response->is_success) {
print $response->decoded_content; # or whatever
}
else {
die $response->status_line;
}
DESCRIPTION
The "LWP::UserAgent" is a class implementing a web user agent. "LWP::UserAgent" objects can be used to dispatch web requests.
“LWP::UserAgent”是实现Web用户代理。”LWP::UserAgent”对象可以用来发送Web请求
In normal use the application c
LWP::UserAgent 模块
最新推荐文章于 2024-03-17 20:41:59 发布