Sambar Server Documentation

sa_conn_redirect


Purpose

Redirect the client connection to another location.

Syntax

sa_conn_redirect (connection, location, buffer, buflen);

SA_CONN *connection;
SA_CHAR *location;
SA_CHAR *buffer;
SA_INT buflen;

Parameters

connection Server connection.
location The location to redirect the client connection to.
buffer The buffer containing the HTML data to send with the redirect message.
buflen The length of the data in buffer.

Returns

SA_SUCCEED if the function is successful; SA_FAIL otherwise.

Comments

This API must be called prior to sending any communication to the client.

See Also

None

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