HTTPD_write()
Writes the body of the response. Uses HTTPD_set and HTTPD_extract for
headers. Valid in the PreExit, Service, NameTrans,Error, and Data Filter
steps.
If you do not use HTTPD_set() to set the content type before the first time
you call this function, the server assumes you are sending a CGI data
stream.
You may need to use HTTPD_set() to set the CGI environment variable
CONTENT_ENCODING to the appropriate code page for the content of
your response before you send the data to the client.
For the Service step, the data to send is in the default job CCSID for
%%MIXED%% and %%EBCIDIC%% CGI output modes unless overidden
by a character CCSID tag on the content_type header. The data is
%%BINARY%% mode, so it is assumed to be binary..
void
HTTPD_write(
unsigned char *handle, /* i; handle */
unsigned char *value, /* i; data to send */
unsigned long *value_length, /* i; length of the data */
long *return_code); /* o; return code */
HTTPD_log_error()
Writes a string to the servers error log.
The string passed to HTTPD_log_error must be EBCDIC (CCSID 37) data.
The server converts the strinbg to the CCSID of the error log file.
void
HTTPD_LINKAGE
HTTPD_log_error(
unsigned char *handle, /* i; handle */
unsigned char *value, /* i; data to write */
unsigned long *value_length, /* i; length of the data */
long *return_code); /* o; return code */
HTTPD_log_trace()
Writes a string to the servers trace log.
The string passed to HTTPD_log_trace must be EBCDIC (CCSID 37) data.
void
HTTPD_LINKAGE
HTTPD_log_trace
unsigned char *handle, /* i; handle (NULL right now) */
unsigned char *value, /* i; data to write */
unsigned long *value_length, /* i; length of the data */
long *return_code); /* o; return code */
HTTPD_restart()
Restarts the server after all active requests have been processed. Valid only
in ServerInit and ServerTerm steps.
void
HTTPD_restart(
long *return_code); /* o; return code */
HTTPD_proxy()
Makes a proxy request. Valid in PreExitand Service steps.
Note: This is a completion function; the response is complete after this
function.
118 Web Programming Guide V4R5