Sambar Server Documentation

sa_send_header


Purpose

Sends an HTTP header response.

Syntax

sa_send_file (connection, filename, length);

SA_CONN *connection;
SA_CHAR *buffer;
SA_INT buflen;

Parameters

connection Client connection.

buffer The header data to return to the client.

buflen The length of the header data.

Returns

SA_SUCCEED if the function is successful; SA_FAIL otherwise.

Comments

The user takes responsibility for all HTTP communications by using this header, including: HTTP versions, cookies, expires and content. This function may only be called once in response to a request.

See Also

None

© 1998 Sambar Technologies. All rights reserved. Terms of Use.