9 my $url = 'http://news.google.cn/news?hl=zh-CN&ned=ccn&ie=UTF-8&q=%E7%94%9F%E7%89%A9&as_drrb=q&as_qdr=h';
10 my $page = $ua->get($url);
11
12
13 print $page->content;
复制代码
就上面的url='http://news.google.cn/news?hl=zh-CN&ned=ccn&ie=UTF-8&q=%E7%94%9F%E7%89%A9&as_drrb=q&as_qdr=h',是google旗下的一个网页,
抓它时,内容部分显示:
<H1>Forbidden</H1>
Your client does not have permission to get URL <code>/news?hl=zh-CN&ned=ccn&ie=UTF-8&q=%E7%94%9F%E7%89%A9&as_drrb=q&as_qdr=h</code> from this server.
这要怎么办呀,求助达人解答作者: chenxiam 时间: 2008-03-14 22:03
顶下作者: chenxiam 时间: 2008-03-15 14:54
问题已解决。。。只要把代码写在浏览在访问就行了作者: __lxmxn__ 时间: 2008-03-15 22:42