My CGI is failing, where can I find error output (stderr) ?
By default the Sambar Server uses pipes to communicate between the server
and the user's CGI. In this mode, no temporary files are created.
However, if the CGI/WinCGI tmp Removal is set to either noerror
or never, the temporary files associated with CGI execution will remain
in the Sambar Server tmp directory. These files can be useful in
debugging script execution (for each CGI executed, files are created showing
input, output and stderr content).
What environment variables are available to my CGI ?
- The environment of the user under which the server is running is available.
- The following variables (if applicable, depending on the request type):
AUTH_TYPE, CONTENT_LENGTH, CONTENT_TYPE,
HTTP_COOKIE, HTTP_HOST, DOCUMENT_ROOT, GATEWAY_INTERFACE,
HTTP_REFERER, HTTP_USERAGENT, PATH_INFO, PATH_TRANSLATED,
QUERY_STRING, REMOTE_ADDR, REMOTE_HOST, REQUEST_METHOD,
DOCUMENT_URI, SCRIPT_URI, SCRIPT_FILENAME, DOCUMENT_NAME,
SERVER_NAME, SERVER_PORT, SERVER_PROTOCOL, SERVER_SOFTWARE,
SSL_CIPHER, SSL_PROTOCOL_VERSION
- In addition, any other "unexpected" HTTP headers sent by the browser
in the request (prepended with
HTTP_
).