~ubuntu-branches/ubuntu/hardy/lighttpd/hardy

« back to all changes in this revision

Viewing changes to tests/docroot/www/nph-status.pl

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2007-09-05 09:30:15 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070905093015-pm98jekbu9ylcd3w
Tags: 1.4.17-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Update maintainer field in debian/control.
  - Build against libgamin-dev rather than libfam-dev (fixes a warning
    during startup)
  - Make sure that upgrades succeed, even if we can't restart lighttpd.
  - Clean environment in init.d script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/perl
2
2
 
3
 
print "HTTP/1.0 30 FooBar\r\n";
 
3
my $status = 200;
 
4
 
 
5
if (defined $ENV{"QUERY_STRING"}) {
 
6
        $status = $ENV{"QUERY_STRING"};
 
7
}
 
8
 
 
9
print "HTTP/1.0 ".$status." FooBar\r\n";
4
10
print "\r\n";