![]() | :: | Software | :: | shttpd |
cgi-dispatch
cgi-dispatch executes the program ./bin/prog, where prog is the value of the CGI environment variable PATH_INFO. cgi-dispatch is intended to be run under cgi-httpd or cgiuser-httpd.
Before executing the program, cgi-dispatch replaces // with / and /. with /: in the program path.
If it encounters an error in processing a request, cgi-dispatch exits 21. If it cannot find the requested program, cgi-dispatch issues an error response and exits 0. Otherwise, it returns the exit code of prog.