我试图用LWP::UserAgent连接到服务器。我已经成功地在同一台服务器上使用LWP::UserAgent进行匿名搜索,但现在我必须使用“机密”内容,这需要在该服务器上使用身份验证。我使用了密码:$ua->default_header('Content-Type' => "application/x-www-form-urlencoded$Authent);
my
我有Perl & LWP这本书,但是我如何设置用户代理字符串呢?这就是我得到的:use LWP::Simple; # Used to download files
my $response_u= LWP::UserAgent->new->get($u);
die "Error: ", $response_u->status_li