wcSetEnv( )
Syntax . .
Returns . .
Rules . .
Tips . .
Program Example . .
Related Topics . .
A-Z Index . .
Home
This function sets the HTTP environment variable.
Example
returnvalue = wcSenEnv (wcp, "PATH_INFO", "/wcdaemon.exe");
Syntax
const char *wcSetEnv(const void *wcp,
const char *pszEnvName
const char *pszEnv Value)
wcp | The handle to the control structure |
pszEnvName | The HTTP environment variable |
pszEnvValue | The value of the HTTP environment variable |
Returns
This function, wcSetEnv( ), returns the new value of pszEnvName.
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.
Tips
- Called when first retrieving information from the server and
initializationof the wc_t object begins.
Program Example
wcSenEnv (wcp, "PATH_INFO", "/wcdaemon.exe");
Related Topics
wcGetEnv( )
Top of Page . .
Syntax . .
Returns . .
Rules . .
Tips . .
Program Example . .
A-Z Index . .
Home