CResponse::setStatus

The CResponse::setStatus function sets the value of the Status property.

int setStatus(
chchar * status // containing the new Status value
);



Return Type

int
Upon successful completion, zero is returned. Otherwise, a value of non-zero is returned.


Parameters

status
A string containing the new Status value.


Remarks

This function sets the value of the Status property of the object. The CResponse::getStatus function can retrieve the status line returned by the server.

Status values are defined in the HTTP1.1 RFC 2068.


See Also

CResponse, CResponse::getStatus

Example