3 $url = "http://localhost:8080/$url" unless $url =~ /:/;
7 $ua = new LWP::UserAgent;
12 $res = $ua->request(HTTP::Request->new("GET", $url),
17 my($data, $response) = @_;
18 my $len = length $data;
20 print "Got $len bytes";
22 $ct_len = $response->header("Content-Length");
25 printf " (%.1f%% done)", $tot/$ct_len*100.0;
30 print $res->as_string;