HttpReadResponseData
Returns HTTP reply body data.
#include <httpexp.h>
#include <httpclnt.h>
int HttpReadResponseData (
HINTERNET hndl,
char **pReplyDataBuffer,
UINT32 *pPostDataLen,
void *pContext,
void (*pCallBackRoutine)(
void *pContext,
HINTERNET hndl,
int returnCode,
char **pReplyDataBuffer,
UINT32 *pReplyDataLen,
void *reserved)
);
The callback function is passed the following parameters:
If successful, returns 0. Otherwise, returns a nonzero error code.
IMPORTANT:Currently this function only works in synchronous mode. Both the pContext and pCallBackRoutine parameters must be set to 0.
The HttpReadResponseData function returns the address and length of the data received in the body of the HTTP rely. If the reply is chunked, this function should be called once for each chunk of the reply until the ERR_NO_ITEMS_FOUND error code is returned.