#!/usr/bin/perl use strict; use LWP::UserAgent; use HTTP::Request::Common; # Between the line like this (see below) # my $AllowedDomains = <new; $ua->agent($ENV{HTTP_USER_AGENT}) if $ENV{HTTP_USER_AGENT}; my $r = $ua->request(GET $url); $success = $r->is_success if $r->is_success; if($success) { $content = $r->content; } else { $content = 'Something is awry. Status code: '.$r->code; } print "Content-type: text/html\n\n$content"; BOTTOM: # end of script