wcGetEnv( )
Syntax . .
Returns . .
Rules . .
Program Example . .
Related Topics . .
A-Z Index . .
Home
This function retrieves the HTTP environment variable
Example
returnvalue = wcGetEnv (wcp, "PATH_INFO");
Syntax
Explain function syntax:
const char *wcGetEnv(const void *wcp,
const char *pszEnvName)
wcp | The handle to the control structure |
pszEnvName | HTTP environment variable name |
Returns
This function, wcGetEnv( ), returns the value of the HTTP environment variable.
Rules
- Both argurmants, the wcp and pszEnvName, should be non-NULL.
- Argument pszEnvName can be one of the following:
"AUTH_TYPE"
"CONTENT_LENGTH"
"CONTENT_TYPE"
"GATEWAY_INTERFACE"
"HTTP_ACCEPT"
"HTTP_REFERER"
"HTTP_USER_AGENT"
"PATH_INFO"
"PATH_TRANSLATED"
"QUERY_STRING"
"REMOTE_ADDR"
"REMOTE_HOST"
"REMOTE_IDENT"
"REMOTE_USER"
"REQUEST_METHOD"
"SCRIPT_NAME"
"SERVER_NAME"
"SERVER_PORT"
"SERVER_PROTOCOL"
"SERVER_SOFTWARE"
"HTTP_COOKIE"
"MI_WEBDIR"
"MI_WEBCONFIG"
- If the pszEnvValue is NULL, the existing environment item will be removed.
Otherwize, the environment variable item will be set to the new value.
Program Example
value = wcGetEnv (wcp, "PATH_INFO");
Related Topics
wcSetEnv( )
Top of Page . .
Syntax . .
Returns . .
Rules . .
Program Example . .
A-Z Index . .
Home