www.krengeltech.com

RXS_getEnvVar

From Wiki

User Guide

Contents

Description

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.

Prototype

     D RXS_getEnvVar...
     D                 pr         32767a   varying
     D  pEnvVar                      30a   value

Parameters

pEnvVar
The name of the environment variable wanted for retrieval.

Return value

None.

Notes / Examples

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