NeoWebScript Variables

The following environment variables are currently available in NeoWebScript™:

webenv array

The global array webenv contains information from the webserver as key-value pairs. (In a normal CGI application, this data would be passed in through Unix environment variables.) The following variables are normally present: The following additional variables may be present after a POST: Note that the routines load_response and load_cookies are available to parse out the variables passed from a form, in the former case, and from the persistent data "cookie" mechanism, in the latter.

NeoWebServerConf array

This is an array that may be initialized from the httpd/httpd.conf file. Lines from that file may not be enclosed within any other specification (ie. <Directory>). Format is
NeoWebServerConf key value
which results in the equivalent of the Tcl code
set NeoWebServerConf($key) $value
in the trusted interpreter. Further interpretation is up to the Tcl code. If value contains spaces, it must be quoted with double quotes.

NeoWebDirConf array

Per-directory initialization of the trusted interpreter from the httpd/access.conf file sets this variable. Usage within httpd/access.conf is:
NeoWebDirConf key value
which results in the equivalent of the Tcl code
set NeoWebDirConf($key) $value
in the trusted interpreter. Further interpretation is up to the Tcl code. If value contains spaces, it must be quoted with double quotes.

The following configurations are supported: