TCPIP_HTTP_CurrentConnectionStatusSet Function

C

void TCPIP_HTTP_CurrentConnectionStatusSet(
    HTTP_CONN_HANDLE connHandle,
    HTTP_STATUS stat 
);

Description

Allows write access to the HTTP status of the selected HTTP connection.

Preconditions

None.

Parameters

ParametersDescription
connHandleHTTP connection handle.
statNew HTTP_STATUS enumeration value.

Returns

None.

Remarks

None.

Example

byteCount = TCPIP_HTTP_CurrentConnectionByteCountGet(connHandle);
sktHTTP = TCPIP_HTTP_CurrentConnectionSocketGet(connHandle);
if(byteCount > TCPIP_TCP_GetIsReady(sktHTTP) + TCPIP_TCP_FifoRxFreeGet(sktHTTP))
{   // Configuration Failure
    // 302 Redirect will be returned
    TCPIP_HTTP_CurrentConnectionStatusSet(connHandle, HTTP_REDIRECT);
}