CHttpResponse::AppendHeader

CHttpResponse::AppendHeader 

Call this method to append a header to the collection of HTTP headers managed by this object.


BOOL AppendHeader(
   LPCSTR szName,
   LPCSTR szValue 
) throw();

Parameters

szName

A null-terminated string containing the name of the HTTP header.

szValue

A null-terminated string containing the value of the HTTP header.

Returns TRUE on success, FALSE on failure.

Call CHttpResponse::ClearHeaders if you need to remove cookies and other headers from the response.

Show:
© 2016 Microsoft