#!/usr/bin/perl use warnings; use strict; use LWP::Simple; my $target = "http://www.mysite.com/cgi-bin/cd.pl"; $content = get($target); #Actually send the request to the webserver die "Couldn't get $target!" unless defined $content;