VAR aVars


 

Attribute:      EXPORTED

 Datatype:      Array

 

Description

::aVars is a two-dimensional array that holds the values of the Server and Session Variables from the Form or passed as part of the QUERY_STRING and their associated values.

 

Procedure Main ( )

 

 

  Local oCGI := aprCGI():New()

 

// Initialize the aprCGI Class

  oCGI:Start()

 

// Starts the Output Page.

  oCGI:Header()

 

// Writes the Page Header, Title and META Data if any

  oCGI:Body()

 

// Writes the BODY Tag and information

  oCGI:TableStart("Center","80%",,1,3,0)

 

// Starts and configures a Table

  oCGI:Data(oCGI:aVars)

 

// Generates Rows and Columns of the Server Variables within the Table

  oCGI:TableEnd()

 

// Closes the Table

  oCGI:Footer()

 

// Closes the Page

  oCGI:Destroy()

 

// Destroys this Instance of the aprCGI Class

Return

 

 

 

HTML Page:

<HTML>

   <HEAD>

      <TITLE>Dump Server Variables</TITLE>

   </HEAD>

   <BODY>

      <a href="www.mydomain.com/cgi-bin/dumpvars.cgi">Click me to see all of the Server Variables.</a>

   </BODY>

</HTML>

 

Results:

ALL_HTTP

 

ALL_RAW

 

APPL_MD_PATH

 

APPL_PHYSICAL_PATH

 

AUTH_PASSWORD

 

AUTH_TYPE

 

AUTH_USER

 

CERT_COOKIE

 

CERT_FLAGS

 

CERT_ISSUER

 

CERT_KEYSIZE

 

CERT_SECRETKEYSIZE

 

CERT_SERIALNUMBER

 

CERT_SERVER_ISSUER

 

CERT_SERVER_SUBJECT

 

CERT_SUBJECT

 

CONTENT_LENGTH

223

CONTENT_TYPE

application/x-www-form-urlencoded

GATEWAY_INTERFACE

CGI/1.1

HTTP_ACCEPT

image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*

HTTP_ACCEPT_LANGUAGE

en-us

HTTP_COOKIE

 

HTTP_HOST

www.mydomain.com

HTTP_REFERER

http://www.mydomain.com/CGITest.htm

HTTP_USER_AGENT

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

HTTPS

off

HTTPS_KEYSIZE

 

HTTPS_SECRETKEYSIZE

 

HTTPS_SERVER_ISSUER

 

HTTPS_SERVER_SUBJECT

 

INSTANCE_ID

1

INSTANCE_META_PATH

 

LOCAL_ADDR

192.168.1.15

LOGON_USER

 

PATH_INFO

 

PATH_TRANSLATED

C:\MyWebDir\MyDomain

QUERY_STRING

 

REMOTE_ADDR

192.168.1.12

REMOTE_HOST

192.168.1.12

REMOTE_USER

 

REQUEST_METHOD

POST

SCRIPT_NAME

/cgi-bin/DumpVars.cgi

SERVER_NAME

www.mydomain.com

SERVER_PORT

80

SERVER_PORT_SECURE

0

SERVER_PROTOCOL

HTTP/1.1

SERVER_SOFTWARE

Microsoft-IIS/5.0

URL

 

 



Contents