vidur%netscape.com 02818e5c1a Cleaning up simple cgi. This is not part of the Seamonkey build.
git-svn-id: svn://10.0.0.236/trunk@73680 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 18:49:41 +00:00

17 lines
340 B
Perl

#!/usr/bin/perl
print "Content-type: text/xml\n\n";
print "<?xml version=\"1.0\"?>\n";
if ($ENV{'REQUEST_METHOD'} eq 'POST')
{
# Get the input
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
print $buffer;
}
else
{
print "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n";
print "<body><p>Expected a POST</p></body></html>\n";
}