RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebResponse.ContentType Property

Indicates the media type of the Content of the HTTP response message.

Pascal
property ContentType: string;
C++
__property AnsiString ContentType;

Set ContentType to indicate the media type of the Content of the HTTP response message. The value of ContentType must specify a valid MIME content type. The ContentType string has the form Type/SubType. 

For example, if the HTTP response message sends a string of HTML commands to the web client in response to a GET request, the ContentType is text/html.

Note: If the HTTP request message includes an Accept header, ContentType should be one of the content types listed in the Accept property of TWebRequest.
 

 

Content 

Accept 

Describing the Content

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!