Protocol_Status - Netscape ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NSAPI Functions (in Alphabetical Order)
Example
/* A noaction response from this function means the request was HEAD
*/
if (protocol_start_response(sn, rq) == REQ_NOACTION) {
}
See also

protocol_status

protocol_status
The
condition occurred. If the reason string is NULL, the server attempts to find a
reason string for the given status code. If it finds none, it returns "
reason.
function to set the status of the response before calling the function
protocol_start_response
For the complete list of valid status code constants, please refer to the file
"
nsapi.h
Syntax
void protocol_status(Session *sn, Request *rq, int n, char *r);
Returns
void
code and the reason string
Parameters
Session *sn
Request *rq
The
Session
SAF.
int n
char *r
172
Netscape Enterprise Server NSAPI Programmer's Guide • April 2002 (Draft)
filebuf_close(groupbuf);
return REQ_PROCEED;
function sets the session status to indicate whether an error
protocol_status
" The reason string is sent to the client in the HTTP response line. Use this
" in the server distribution
, but it sets values in the Session/Request designated by
is the Session.
is the Request.
and
Request
is one of the status code constants above.
is the reason string.
/* close our file*/
.
parameters are the same as the ones passed into your
Unknown
/
for the status
sn
rq

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.1

Table of Contents