NetManage Personal Web Server - CGI Variables


AUTH_REALM

When the HTTP client's user has been authenticated, this variable will be set to the realm (ie: authentication grouping) used - usually describes the web's secure area.


AUTH_TYPE

When the HTTP client's user has been authenticated, this variable will be set to the type of authentication used -- typically "basic".


AUTH_USER

When the HTTP client's user has been authenticated, this variable will be set to the user's authentication (or login) name. The validity of this name is dependent on the type of authentication used.


CONTENT_FILE

Physical path name of file, if POSTed by HTTP client.


CONTENT_LENGTH

Length of data, if POSTed by HTTP client.


CONTENT_TYPE

MIME type of data, if POSTed by HTTP client.


DOCUMENT_ROOT

Physical path of the web server's document root.


DATE_GMT

Current date and time in Greenwich Mean Time.


DATE_LOCAL

Current local date and time.


GATEWAY_INTERFACE

The CGI version supported.


GMT_OFFSET

The local offset in seconds from GMT.


HTTP_ACCEPT

The MIME types accepted by the HTTP client.


HTTP_FROM

The HTTP client's email address if supplied. If the user has been authenticated, and an email address is available on the server's user data base, this will reported if not supplied by the client.


HTTP_REFERER

If the HTTP client request came from an HTML anchor, this reports the web page's URL that supplied the anchor .


HTTP_USER_AGENT

The name and version of the HTTP client making a server request.


LOG_HTTP

The physical path of this HTTP server's access log file.


LOG_FTP

The physical path of NetManage's FTP server access log file.


PATH_INFO

The logical path provided within a CGI request.


PATH_TRANSLATED

The path provided within a CGI request, translated to a physical path.


QUERY_STRING

The query string provided within a CGI request.


QUERY_STRING_UNESCAPED

The query string provided within a CGI request, with translated escaped characters.


REMOTE_ADDR

The IP address of the HTTP client.


REMOTE_HOST

The resolved host name of the HTTP client, if DNSLookup is enabled, and the IP address is resolvable. To enable DNSLookup, add the following Windows' REG_DWORD registry key: HKEY_LOCAL_MACHINE\SOFTWARE\NETMANAGE\W3SERVER\General\DNSLOOKUP, and set it to 1.


REMOTE_USER

Same as AUTH_USER.


REQUEST_METHOD

The request method used by the HTTP client. Usually GET for documents or POST for forms.


SCRIPT_NAME

If a script is being executed, the logical path of the script file.


SERVER_ADMIN

The email address of the server's web administrator, if supplied in the configuration dialog.


SERVER_NAME

The host name of the server.


SERVER_PORT

The port number used by the server.


SERVER_PROTOCOL

The protocol and version used by the server.


SERVER_SOFTWARE

The name and version of the server.