RXS_getEnvVar()

There are times when you may need to gain access to the Apache server’s environment variables or HTTP headers that are sent with the incoming request. This subprocedure will ease that retrieval.

Some of the valid values to pass into RXS_getEnvVar include the following:

  • AUTH_TYPE
  • CGI_ASCII_CCSID
  • CGI_EBCDIC_CCSID
  • CONTENT_LENGTH
  • CONTENT_TYPE
  • GATEWAY_INTERFACE
  • HTTP_ACCEPT
  • HTTP_USER_AGENT
  • PATH_INFO
  • PATH_TRANSLATED
  • QUERY_STRING
  • REMOTE_ADDR
  • REMOTE_HOST
  • REMOTE_IDENT
  • REQUEST_METHOD
  • REMOTE_USER
  • SCRIPT_NAME
  • SERVER_NAME
  • SERVER_PORT
  • SERVER_PROTOCOL
  • SERVER_SOFTWARE

Subprocedure Prototype

D RXS_getEnvVar...
D                 pr         32767a   varying

Get an Apache environment variable or incoming HTTP header.

D  pEnvVar                      30a   value

The name of the environment variable from which to retrieve the value.

Example: AUTH_TYPE,CONTENT_TYPE,PATH_INFO,REMOTE_ADDR,SERVER_PORT