Add new CGI environment to manpage. - geomyidae - A small C-based gopherd. HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 1b2b79b5a0257b116c77981f0b9d640e1802728c DIR parent 204334bcd5b557e42bafc47502016d7f0f71ca91 HTML Author: Christoph Lohmann <20h@r-36.net> Date: Fri, 26 Jan 2018 14:20:28 +0100 Add new CGI environment to manpage. Diffstat: M geomyidae.8 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+), 0 deletions(-) --- DIR diff --git a/geomyidae.8 b/geomyidae.8 @@ -327,6 +327,23 @@ where All terms are tab-separated (per gopher protocol) which can cause some surprises depending on how a script is written. See the CGI file (included in the geomyidae source archive) for further elaboration. +.Pp +Additionally to the above arguments several environment variables are set. +.Pp +.Dl GATEWAY_INTERFACE = `CGI/1.1' +.Dl PATH_INFO = script which is executed +.Dl PATH_TRANSLATED = absolute path with script which is executed +.Dl QUERY_STRING = arguments (See above.) +.Dl REMOTE_ADDR = IP of the client +.Dl REMOTE_HOST = REMOTE_ADDR +.Dl REQUEST_METHOD = GET +.Dl SCRIPT_NAME = script which is executed +.Dl SERVER_NAME = server's hostname +.Dl SERVER_PORT = server's port +.Dl SERVER_PROTOCOL = `gopher/1.0' +.Dl SERVER_SOFTWARE = `geomyidae' +.Dl X_GOPHER_SEARCH = search (See above.) +.Pp . .Ss Some CGI Examples Note: these are a very simple examples with no fitness checks with respect