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:
- DOCUMENT_NAME
- DOCUMENT_ROOT
- DOCUMENT_URI
- HTTP_ACCEPT
- HTTP_CONNECTION
- HTTP_HOST
- HTTP_REFERER
- HTTP_USER_AGENT
- NEOSCRIPT_VERSION
- NEO_LAST_MODIFIED
The time the file was last modified in integer-seconds-since-1970 format.
- NEO_SOFTWARE_START
- NEO_TIME_FORMAT
The default time format passed to strftime in C, or clock in NeoWebScript.
- QUERY_STRING
- REMOTE_ADDR
- REMOTE_HOST
- REQUEST_METHOD
- SERVER_ADMIN
- SERVER_NAME
- SERVER_PORT
- SERVER_PROTOCOL
- SERVER_ROOT
- SERVER_SOFTWARE
The following additional variables may be present after a POST:
- CONTENT_LENGTH
- CONTENT_TYPE
- HTTP_PRAGMA
- NEO_POST_DATA
The data that was passed in from the POST operation.
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.