#!/usr/bin/perl print "Content-type: text/html\n\n"; print "here we go again..."; if (eval "require LWP::UserAgent; use HTTP::Request::Common; 1;") { my $ua = LWP::UserAgent->new; my %post; my $content = $ua->request(POST "http://www.cnn.com", [%post])->as_string; print $content; } else { print "didnt work"; }