ssjs_getCGIVariable()

NES3+Syntax

ssjs_getCGIVariable(envVariable)

Description

The ssjs_getCGIVariable function is a top-level function that is not associated with any core server-side object. This function allows you to retrieve environment variables that are available to your CGI processes. When a variable cannot be found, the function returns null. Table 8.25 contains the default list of variables you can access.

Table 8.25. Environment Variables Accessible by the ssjs_getCGIVariable Function
VariableDescription
AUTH_TYPEThe authorization type if the request is protected by a type of authorization. This returns values such as basic.
HTTPSIf security is active on the server. This returns values of ON or OFF.
HTTPS_KEYSIZEThe number of bits ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.