The function kcHttpGetReqMsgBody
returns the pointer to the message body of an HTTP request and its length.
This function may be called both in program unit and HTTP exit program.
In the program unit the function may only called in the first program unit run of a service and in the HTTP exit program only when processing the input message.
kc_http_retcode kcHttpGetReqMsgBody( void ** reqMessageBody, int * reqMessageBodyLth );
This function has following function parameter:
<< | reqMessageBody | The pointer to a variable where the pointer to the message body of the HTTP request is returned. |
<< | reqMessageBodyLth | The pointer to a variable where the length of the message body of the HTTP request is returned. |
Description of returned value of function call:
KC_HTTP_OK
The function has successfully terminated.
KC_HTTP_FUNCTION_CALL_NOT_ALLOWED
The function was called by the KDCS program unit before the KDCS call INIT was executed or not in the first program unit run or by an HTTP exit program during processing of the output message.
KC_HTTP_NO_HTTP_CLIENT
The calling service was not initiated by an HTTP client.
KC_HTTP_PARAM_VALUE_NULL
The pointer to the variable reqMessageBody
or the pointer to the variable reqMessageBodyLth
is NULL.