Perl 程序运行报错 500 Unrecognized character \xFF 求助如何解决
一个简单的抓取网页内容的程序:useLWP::UserAgent;useHTTP::Request;my$url="http://www.baidu.com";my$ua...
一个简单的抓取网页内容的程序:
use LWP::UserAgent;
use HTTP::Request;
my $url="http://www.baidu.com";
my $ua=LWP::UserAgent->new();
$request=HTTP::Request->new(GET=>$url);
my $response=$ua->request($request,"temp.txt");
print $response->status_line;
运行后print的结果是500 Unrecognized character \xFF
没有生成temp.txt文件 展开
use LWP::UserAgent;
use HTTP::Request;
my $url="http://www.baidu.com";
my $ua=LWP::UserAgent->new();
$request=HTTP::Request->new(GET=>$url);
my $response=$ua->request($request,"temp.txt");
print $response->status_line;
运行后print的结果是500 Unrecognized character \xFF
没有生成temp.txt文件 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询