From RAD Studio API Documentation
Jump to: navigation, search


property Content: string read GetContent;


__property System::UnicodeString Content = {read=GetContent};


Type Visibility Source Unit Parent
property public
Web.HTTPApp TWebRequest


Represents the unparsed contents of the HTTP request message.

Use Content to read the contents of an HTTP request message that is sending information to the server. The value of Content depends on the Method of the HTTP request. When the Method is POST, Content is the unparsed string giving the values to be posted with their associated fields. When the Method is PUT, Content is the value that should replace the URL given by the URL property.

Tip: When the Method is POST, the parsed version of the post request is available in the ContentFields property.

Note: If the content of a message is particularly large, it is transferred in chunks. In this case, the Content property does not contain the entire message content. To read the rest of the content, use the ReadClient method.

See Also