标签:repos class repo com bsp blog status line user
1 #!/usr/bin/perl -w 2 use strict; 3 use LWP::UserAgent; 4 5 my $useragent = new LWP::UserAgent; 6 my $url = ‘http://www.baidu.com‘; 7 my $request = HTTP::Request->new(GET => $url); 8 my $repose = $useragent->request($request); 9 print $repose->as_string; 10 #网站源码 11 print "\n",$repose->status_line, "\n"; 12 #响应码
标签:repos class repo com bsp blog status line user
原文地址:http://www.cnblogs.com/perl6/p/6136212.html