HttpSendPackage
Sends a complete response message (including Header and Data) to the client using the data and data size provided.
#include <httpexp.h>
int HttpSendPackage (
HINTERNET hndl,
void *pData,
UINT32 szData);
If successful, returns 0. Otherwise, returns a nonzero error code.
The HttpSendPackage function allows you to reply with a single call when HTTP status of your reply is 200 (HTTP_STATUS_OK) and any data you need to send is in HTML format.