SPUG: I can't get any content
DeRykus, Charles E
charles.e.derykus at boeing.com
Thu Oct 7 09:25:40 CDT 2004
> #!/usr/bin/perl
> use LWP::Simple;
> @content=split /\n/,get("http://www.google.com/search?hl=en&q=perl");
> print "@content \n"
> But I can not received any content from this url. any idea?
Looks like you're not welcome:
--
Charles DeRykus
perl -le 'use LWP::Debug qw(+);use LWP::Simple; getprint "http://www.google.com/search?hl=en&q=perl"'
...
LWP::UserAgent::send_request: GET http://www.google.com/search?hl=en&q=perl
LWP::UserAgent::_need_proxy: Proxied to <....censored....>
LWP::Protocol::http::request: ()
LWP::Protocol::collect: read 878 bytes
LWP::Protocol::collect: read 3036 bytes
LWP::UserAgent::request: Simple response: Forbidden
403 Forbidden <URL:http://www.google.com/search?hl=en&q=perl>
More information about the spug-list
mailing list