contents   index   previous   next



Standard CGI Environment Variables

 

CGI Environment Variables are typically passed to an executable or script that can act on these variables if needed. However, with WebX, they can also be used as in-line automation tags.

 

Variable

Description

AUTH_TYPE

Returns the type of authentication used to access the page. A blank screen signifies that no log was used. Basic means that basic clear text was used.

CONTENT_LENGTH

Specifies the number of bytes that will be received from the client.

CONTENT_TYPE

Specifies the type of content (MIME) that will be sent using the POST method.

GATEWAY_INTERFACE

Version of the Gateway Interface that is being used. The Current version is CGI/1.1.

HTTP_ACCEPT

Returns a string listing the Accept fields (MIME) in the HTTP header.

HTTP_REFERER

HTTP_USER_AGENT

PATH_INFO

Returns the path from the client.

PATH_TRANSLATED

The virtual path translated from PATH INFO.

QUERY_STRING

Parameters that are passed by the client. A "?" Signifies the beginning of the QUERY STRING.

REMOTE_ADDR

The IP address of the client.

REMOTE_HOST

The host name of the client. Warning: This tag may significantly slow down page processing because of the required DNS lookup.

REMOTE_USER

Returns the Username supplied by the client. This is also the username that the server will use if authentication was used.

REQUEST_METHOD

The HTTP request method. Currently, WebX supports GET and POST.

SCRIPT_NAME

The name of the executable (or script) to run. For example, for http://www.mydomain.com/products/prod_list.exe?Type=DVD, the SCRIPT_NAME = prod_list.exe.

SERVER_NAME

The server's IP address or hostname that is used in self-referring addresses.

SERVER_PORT

The IP port number the server is listening on. Normally 80 for web servers, but can set to other non-standard values. http://www.mydomain.com:3333 will connect to a web server at port 3333 instead of the default of 80.

SERVER_PROTOCOL

Name and version of the protocol used for the client request. WebX currently supports HTTP/1.0.

SERVER_SOFTWARE

The name and version of the web server. WebX sets this variable to "Future Wave Tech WebX/1.0", but this value can be changed to personalize your application.