This topic has not yet been rated - Rate this topic

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.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.