fetch_url\r
);\r
\r
-use SelfLoader;\r
-__DATA__\r
-\r
my $ua = LWP::UserAgent->new(timeout=>30);\r
if(get_option('proxy_host') ne '') {\r
my $proxy_host = get_option('proxy_host');\r
if(defined($roverride)) { $referer = $roverride; }\r
my $md5 = md5_hex($url);\r
\r
- my $req = HTTP::Request->new(GET => $url);\r
+ my $req = HTTP::Request->new(GET => $url) or die "Can't fetch page: $!\n";\r
+\r
if($referer ne '') { $req->header( referer => $referer ); }\r
\r
my $res = $ua->request($req);\r