i changed my code : this is ok to send response
response.EntityChunkCount = 0;
response.pEntityChunks=0;
ULONG BytesSent;
ULONG result = HttpSendHttpResponse(ReqQueueHandle, HttpRequest->RequestId,
0, &response, NULL,&BytesSent, NULL,
0,NULL,NULL, NULL);
for ()
{
PHTTP_DATA_CHUND chunk;
chunk.DataChunkType = HttpDataChunkFromMemory;
chunk.FromMemory.pBuffer = buffer[i];
chunk.FromMemory.BufferLength = len[i];
HttpSendResponseEntityBody(ReqQueueHandle, HttpRequest->requestId,
HTT_SEND_RESPONSE_FLAG_MORE_DATA, 1, &chunk, 0
NULL, 0, NULL, NULL);
}
PHTTP_DATA_CHUND chunkEnd;
chunkEnd.DataChunkType = HttpDataChunkFromMemory;
chunkEnd.FromMemory.pBuffer = "\r\n0\r\n";
chunkEnd.FromMemory.BufferLength = 5;
HttpSendResponseEntityBody(ReqQueueHandle, HttpRequest->requestId,
HTT_SEND_RESPONSE_FLAG_DISCONNECT, 1, &chunkEnd, 0
NULL, 0, NULL, NULL);