HttpSendPackage

Sends a complete response message (including Header and Data) to the client using the data and data size provided.

Syntax

    #include <httpexp.h>
    
    int HttpSendPackage (
      HINTERNET    hndl,
      void        *pData, 
      UINT32       szData);
    

Parameters

hndl
(IN) Specifies the HTTP stack handle.
pData
(IN) Points to the HTML data to send.
szData
(IN) Specifies the size of data to send.

Return Values

If successful, returns 0. Otherwise, returns a nonzero error code.

Decimal

Name

Description

255

ERR_BAD_PARAMETER

Invalid handle.

Remarks

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.

See Also