HttpSendSuccessfulResponse

Opens a response Header session with an HTTP_STATUS_OK status, current Internet date and time attribute, and the Content Type attribute string provided by the caller.

Syntax

    #include <httpexp.h>
    
    int HttpSendSuccessfulResponse (
      HINTERNET    hndl,
      void        *pzContentType);
    

Parameters

hndl
(IN) Specifies the HTTP stack handle.
pzContentType
(IN) Points to a Header Content Type ASCIIZ string.

Return Values

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

Decimal

Name

Description

255

ERR_BAD_PARAMETER

Invalid handle.