Web.HTTPApp.TWebRequest.ContentLength

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ContentLength: Integer index 16 read GetIntegerVariable;

C++

__property int ContentLength = {read=GetIntegerVariable, index=16, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Web.HTTPApp.pas
Web.HTTPApp.hpp
Web.HTTPApp TWebRequest

Description

Reports the value of the Content-Length header of the HTTP request message.

Read the ContentLength property to determine the length of the Content property. ContentLength allows an application to determine the end of the Content property when the ContentType is not text/html. A ContentLength of 0 indicates that the length of the Content property is not determined, either because the request does not include any Content, or because the Web client did not know the length.

Note: The length of the Content may be less than ContentLength when the Content is passed using chunked transfer coding.

See Also