HttpAddResponseHeaderStringContentType

Appends a content-type attribute to an HTTP Response Header with the provided string.

Syntax

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

Parameters

hndl
(IN) Specifies the HTTP stack handle.
pzContentType
(IN) Points to an ASCIIZ Content Type Header attribute (assumed to include the CR LF sequence).

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.