diff options
Diffstat (limited to 'tests/docroot/www/nph-status.pl')
-rwxr-xr-x | tests/docroot/www/nph-status.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/docroot/www/nph-status.pl b/tests/docroot/www/nph-status.pl index 528791be..d817c7fd 100755 --- a/tests/docroot/www/nph-status.pl +++ b/tests/docroot/www/nph-status.pl @@ -1,4 +1,10 @@ #!/usr/bin/perl -print "HTTP/1.0 30 FooBar\r\n"; +my $status = 200; + +if (defined $ENV{"QUERY_STRING"}) { + $status = $ENV{"QUERY_STRING"}; +} + +print "HTTP/1.0 ".$status." FooBar\r\n"; print "\r\n"; |