This documentation is archived and is not being maintained.

CHttpResponse::SetContentType 

Call this method to set the content type of the HTTP response.


BOOL SetContentType(
   LPCSTR szContentType 
) throw( );

Parameters

szContentType

The MIME content type.

Returns TRUE on success, FALSE on failure.

Call this method to set the Content-Type header of the HTTP response. Examples of common MIME content types include text/html and text/plain.

Show: