RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebRequest.Content Property

Represents the unparsed contents of the HTTP request message.

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

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.
 

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