HttpAddResponseHeaderSetCookieTag

Appends an ASCIIZ string containing a caller supplied cookie to an HTTP Response Header.

Syntax

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

Parameters

hndl
(IN) Specifies the HTTP stack handle.
pCookie
(IN) Points to an ASCIIZ Cookie string.
szCookie
(IN) Specifies the size of the Cookie string.

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.