blob: 70565d2f5cc7a1bdf89ef08d4ca066871991cc1f [file] [log] [blame]
#!/usr/bin/perl -w
print "Content-type: text/plain\n\n";
if ($ENV{'REQUEST_METHOD'} eq "POST") {
if ($ENV{'CONTENT_LENGTH'} > 0) {
read(STDIN, $request, $ENV{'CONTENT_LENGTH'})
|| die "Could not get query\n";
print $request;
}
} else {
print "Wrong method: " . $ENV{'REQUEST_METHOD'} . "\n";
}