chromium/third_party/blink/web_tests/http/tests/misc/resources/post-echo-and-notify-done.cgi

#!/usr/bin/perl -wT

print "Content-type: text/html\n\n"; 

if ($ENV{'REQUEST_METHOD'} eq "POST") {
    read(STDIN, $request, $ENV{'CONTENT_LENGTH'})
                || die "Could not get query\n";
    print $request;
    print "<script>if (window.testRunner) testRunner.notifyDone();</script>";
} else {
    print "Wrong method: " . $ENV{'REQUEST_METHOD'} . "\n";
}