Protocol_Start_Response - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

The Session and Request parameters are the same as the ones passed into your
SAF.
is the stat structure for the file.
stat *finfo
The
structure contains the information about the file from the file system. You
stat
can get the
structure info using
stat
See also
protocol_start_response, protocol_status

protocol_start_response

The
protocol_start_response
specified session and request. If the protocol version is HTTP/0.9, the function
does nothing, because that version has no concept of status. If the protocol version
is HTTP/1.0, the function sends a status line followed by the response headers. Use
this function to set up HTTP and prepare the client and server to receive the body
(or data) of the response.
Syntax
int protocol_start_response(Session *sn, Request *rq);
Returns
The constant
REQ_PROCEED
send the data you were preparing to send.
The constant
REQ_NOACTION
was HEAD in which case no data should be sent to the client.
The constant
REQ_ABORTED
Parameters
is the Session.
Session *sn
is the Request.
Request *rq
The
and
Session
Request
SAF.
request_stat_path
function initiates the HTTP response for a
if the operation succeeded, in which case you should
if the operation succeeded, but the request method
if the operation did not succeed.
parameters are the same as the ones passed into your
NSAPI Functions (in Alphabetical Order)
.
Chapter 5
NSAPI Function Reference
167

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents