HttpOpenResponseHeaderTag

Opens a Response Message Header session.

Syntax

    #include <httpexp.h>
    
    int HttpOpenResponseHeaderTag (
      HINTERNET    hndl,
      UINT32       HTTP_ERROR_CODE);
    

Parameters

hndl
(IN) Specifies the HTTP stack handle.
HTTP_ERROR_CODE
(OUT) Specifies a value which contains the HTTP Status Code to use. See Section 6.1, HTTP Status Codes.

Return Values

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

Decimal

Name

Description

168

ERR_ACCESS_DENIED

The HttpSendResponseHeader function has already been called.

255

ERR_BAD_PARAMETER

Invalid handle.