use LWP::UserAgent; use CGI; $cgi = new CGI; $url = 'http://www.google.de/index.html'; $ua = LWP::UserAgent->new; $request = HTTP::Request->new('GET',$url); $res = $ua->request($request); print $cgi->header(), $res->content();