Consultor Eletrônico



Kbase 16040: How and When to use the GetCGI method
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
How and When to use the GetCGI method

How and when to use the GetCGI method:

GetCGI retrieves the value for any CGI environment variable. The
syntax is defined as:
RUN GetCGI IN web-utilities-hdl
(INPUT <variable name>, OUTPUT <value>).

This will work for all variables passed to WebSpeed from your web
server. However, WebSpeed defines individual GLOBAL VARIABLES
for each of the following CGI Version 1.1 variables:

GATEWAY_INTERFACE
SERVER_SOFTWARE,SERVER_PROTOCOL
SERVER_NAME
SERVER_PORT
REQUEST_METHOD
SCRIPT_NAME
PATH_INFO
PATH_TRANSLATED
QUERY_STRING
REMOTE_ADDR
REMOTE_HOST
REMOTE_IDENT
REMOTE_USER
AUTH_TYPE
CONTENT_TYPE
CONTENT_LENGTH
HTTP_ACCEPT
HTTP_COOKIE
HTTP_REFERER
HTTP_USER_AGENT

You can just use the variable to get the value. For example,
if you wanted to check SERVER_NAME you can just write:
IF SERVER_NAME eq "demeter" THEN...

You only need to use the GetCGI method to access enviornment
variables not defined in src/web/method/cgivars.i
For example: DOCUMENT_ROOT

For more information on CGI variables see:
http://hoohoo
csa.uiuc.edu/cgi/env.html

Progress Software Technical Support Note # 16040