use LWP::Simple; if ($ENV{'QUERY_STRING'}) { $buffer = $ENV{'QUERY_STRING'}; } else { read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); } @pairs = split(/&/, $buffer); foreach $pair (@pairs) { ($name, $value) = split(/=/, $pair); $value =~ tr/+/ /; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $value =~ s/\n/ /g; $FORM{$name} = $value; } print "Content-type: text/html\n\n"; $URL = $FORM{'url'}; $page = get($URL); $page =~ s/\s+/ /g; # I do more with the $page varaible later but I break it off here. # Strip most of the HTML,