blob: 5d4f8080552e27c2dc0a4a1f4b8bfa90815cfdb7 [file] [log] [blame]
#!perl
use CGI ();
use strict;
my $r = CGI->new;
#warn "Running cgi.pl with $CGI::VERSION";
my($param) = $r->param('PARAM');
my($httpupload) = $r->param('HTTPUPLOAD');
$r->print( $r->header(-type => "text/plain",
"-X-Perl-Script" => "cgi.pl") );
$r->print( "ok $param\n" ) if $param;
my($content);
if ($httpupload) {
no strict;
local $/;
$content = <$httpupload>;
$r->print( "ok $content\n" );
close $httpupload; # needed on win32?
}