aciObjectExecuteToString

Call the aciObjectExecuteToString function to run an ACI action to a string buffer, rather than to an ACI response object.

Syntax

aciError aciObjectExecuteToString(
   t_aciObject* pConnection,
   t_aciObject* pToExecute,
   char** pszResult,
   int* pnBufferLength,
   char** pszContentType);

Arguments

Arguments Type/Description
pConnection t_aciObject*  A pointer to an ACI_CONNECTION object.
pToExecute t_aciObject*  A pointer to an ACI object that contains the action.
pszResult char**  A pointer to the response string buffer.
pnBufferLength int*  A pointer to the length of the response string buffer.
pszContentType char**  A pointer to the string containing the value of the Content-type HTTP header field in the response.

Discussion

This function opens the pConnection connection, runs the action that is contained in the pToExecute ACI object, and then closes the connection. You can call this function only for a Connection type ACI object.

The response string buffer contains the body of the response.

Returns

An ACI error code.