Functions Defined in RCGI.C Called Directly by CGIAPP.C

Function NameFunction Description

rcgi_sendreply

Sends data to the web server.

rcgi_sendheader

Sends the generic header to the web server.

rcgi_cleanup

Performs cleanup functions after the program finishes executing. This function is for NLMs only. .

rcgi_main

Waits for a request, does RCGI processing, and then does whatever is necessary to generate the requested web response page.

char *get_env(char *variable_name)

Returns the value of the environment variable name called variable_name. Callers should remember to free the returned value(string) once they are done with it.

put_env(char *variable_name, char *value)

Saves the environment variable name/value pair in the global "env" array.