summaryrefslogtreecommitdiffstats
path: root/app.cgi
blob: fdf765fee013a6541681e322b5796e56df06cd61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/perl

use strict;
use warnings FATAL => 'all';
use CGI ();

print "Content-Type: text/html; charset=UTF-8\n";
print "Pragma: no-cache\n";

print <<"EOS";

<html>
  <head>
    <title>Application</title>
  </head>
  <body>
    <h1>Application</h1>
    <p>
    This is a test application.
    </p>
    <hr/>
    <pre>@{[ join "\n", map CGI::escapeHTML("$_=$ENV{$_}"), sort keys %ENV ]}
    </pre>
  </body>
</html>
EOS