Web.HTTPApp.TWebRequest.ContentType

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ContentType: string index 15 read GetStringVariable;

C++

__property System::UnicodeString ContentType = {read=GetStringVariable, index=15};

Properties

Type Visibility Source Unit Parent
property public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp TWebRequest

Description

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

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.

See Also