NSAPI Functions (in Alphabetical Order)
Chapter
5
NSAPI Function Reference
171
The Session and Request parameters are the same as the ones passed into your
SAF.
stat *finfo
is the stat structure for the file.
The
stat
structure contains the information about the file from the file system. You
can get the
stat
structure info using
request_stat_path
.
See also
protocol_start_response, protocol_status
protocol_start_response
The
protocol_start_response
function initiates the HTTP response for a
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
if the operation succeeded, in which case you should
send the data you were preparing to send.
The constant
REQ_NOACTION
if the operation succeeded, but the request method
was HEAD in which case no data should be sent to the client.
The constant
REQ_ABORTED
if the operation did not succeed.
Parameters
Session *sn
is the Session.
Request *rq
is the Request.
The
Session
and
Request
parameters are the same as the ones passed into your
SAF.
Summary of Contents for ENTERPRISE SERVER 6.1
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Page 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...