chromium/third_party/blink/web_tests/http/tests/security/upgrade-insecure-requests/resources/post-https-header.pl

#!/usr/bin/perl -wT
use strict;

print "Content-Type: text/html\n";
print "Access-Control-Allow-Origin: *\n";
print "Cache-Control: no-store\n\n";

print <<DONE
<script>
    var target = window.opener || window.top;
    target.postMessage({ "header": "$ENV{"HTTP_UPGRADE_INSECURE_REQUESTS"}" }, "*");
</script>
DONE