use HTTP::Request::Common; use LWP::UserAgent; use HTTP::Headers; my $refer = 'http://www.kingfeatures.com'; my $url = 'http://www.kingfeatures.com/stuff...'; my $agent = LWP::UserAgent->new(keep_alive => 1, timeout => 10, ); # change this to masquerade as a browser if the site requires it. my $hdrs = new HTTP::Headers(User-Agent => 'My friendly LWP script'); $hdrs->referrer($refer); my $req = new HTTP::Request(GET => url, $hdrs); my $response = $agent->request($req); # $response is a HTTP::Response object. if ($response->is_success) { # you now have access to info like $response->headers # print 'Content-type: ' . $response->headers->content_type . "\n\n"; # but what you probably want is in here: print $response->content; }