RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebResponse.ContentLength Property

Specifies the length, in bytes, of the Content property.

Pascal
property ContentLength: Integer;
C++
__property int ContentLength;

Set ContentLength to the length of the Content property, if it is known. If the length of the Content property is unknown, or if the response message does not include any content, set ContentLength to 0. Web clients use the ContentLength when reading the contents of the HTTP response message. 

If the contents of the response message are taken from a stream, the value of ContentLength is set from the stream. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!