RAD Studio VCL Reference
TWebRequest.ContentType Property

Reports the value of the Content-Type header of the HTTP request message.

property ContentType: AnsiString;
__property AnsiString ContentType;

Read ContentType to determine the media type of the Content of the HTTP request message. The ContentType is a string of the form Type/SubType. 

Most HTTP requests do not require any Content at all. For most requests with a Method that requires a value for Content, the ContentType is text/html. However, HTTP requests for server-specific values of Method can use any media type appropriate to the request. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!