HTTPApp.TWebRequest.Content
From RAD Studio VCL Reference
Contents |
Delphi Information
From HTTPApp.pas
property Content: string read GetContent;
Unit: HTTPApp
Type: property
Visibility: public
Member Of: TWebRequest
C++ Information
From HTTPApp.hpp
__property System::UnicodeString Content = {read=GetContent};
Unit: HTTPApp
Type: property
Visibility: public
Member Of: TWebRequest
Description
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.