summaryrefslogtreecommitdiff
path: root/tests/docroot/www/nph-status.pl
blob: dd033f8795d59fb5db4ee946ce777a58f5dc14da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl 

my $status = 200;

if (defined $ENV{"QUERY_STRING"}) {
	$status = $ENV{"QUERY_STRING"};
}

if ($status == 0 && $status ne "0") {
	# not a number, just send as content
	print $status;
} else {
	print "HTTP/1.0 ".$status." FooBar\r\n\r\n";
}