SuperScript::Software::shttpd

The echo-httpd program


Interface

  echo-httpd

echo-httpd reads an HTTP request message from standard input, adds a header, and prints the result to standard output.

Before reading any input, echo-httpd changes the working directory to that named in the $ROOT environment variable, performs chroot to the current directory, and then sets its group id and user id to the numeric values given in the environment variables $GID and $UID, typically set with envdir. If it cannot carry out these operations, echo-httpd complains to standard output and exits 111. echo-httpd opens no files.

If it encounters a temporary error in processing a request, echo-httpd exits 21. Otherwise, it exits 0.

echo-httpd is a debugging tool, and not a proper http daemon. It does not parse the request message, and handles any request, no matter how severely deformed.