HttpAddResponseHeaderTags

Appends the provided string to an HTTP Response Header.

Syntax

    #include <httpexp.h>
    
    int HttpAddResponseHeaderTags (
      HINTERNET    hndl,
      void        *pHeaders,
      UINT32       dwHeadersLength);
    

Parameters

hndl
(IN) Specifies the HTTP stack handle.
pHeaders
(IN) Points to a Header Attribute or Header Attributes (separated by CR LF).
dwHeadersLength
(IN) Specifies the size of the Header Attribute or Header Attributes.

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.