summaryrefslogtreecommitdiff
path: root/tests/docroot/www/cgi.pl
blob: 096d509e54f8ae5f36378e5632794f255745e4d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env perl

if ($ENV{"QUERY_STRING"} eq "internal-redir") {
    print "Location: /cgi.pl\r\n\r\n";
    exit 0;
}

print "Content-Type: text/html\r\n\r\n";

print $ENV{"SCRIPT_NAME"};

0;