HttpSendDataResponse

Closes the Data Response session and flushes the data in the Tx buffer.

Syntax

    #include <httpexp.h>
    
    int HttpSendDataResponse (
      HINTERNET    hndl,
      void        *pBuffer,
      UINT32       szBuffer);
    

Parameters

hndl
(IN) Specifies the HTTP stack handle.
pBuffer
(IN) Points to the data to be sent.
szBuffer
(IN) Specifies the size of data to be sent.

Return Values

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

Decimal

Name

Description

162

ERR_IO_LOCKED

The application must complete the Header response before using data functions.

168

ERR_ACCESS_DENIED

The HttpSendResponseHeader must be completed before data functions are used.

255

ERR_BAD_PARAMETER

Invalid handle.