RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebResponse.Content Property

Contains the information sent to the web client in response to an HTTP request message.

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

Use Content to send requested information to the web client. Not every HTTP request message requires content to be returned. For example, responses to requests with a Method of OPTIONS, HEAD, POST, PUT, DELETE, or TRACE should not include any Content. In all these cases, the response information is contained entirely in the response header, which is built from the other properties of the TWebResponse object. 

The response content can be a string of HTML commands, the name of an HTML file, graphic content such as a bit-stream, or any other MIME content type.

Note: If the ContentStream property is set, it supersedes the value of the Content property. If both Content and ContentStream are set, the web client is sent the value of the ContentStream, not the value of the Content property.
 

 

ContentEncoding 

ContentLength 

ContentStream 

ContentType 

ContentVersion 

DerivedFrom 

Expires 

TWebRequest 

Responding to Request Messages with Action Items 

Setting the Response Content

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