property ContentLength: Int64 default -1;

 

Description

Gets or sets the value of the Content-Length HTTP header.

The ContentLength property specifies the number of bytes of data to be sent to the internet resource.

The default value is -1, which indicates that the property hasn't been explicitly set and that no request body is expected.

If ContentLength is set to any value other than -1, it implies that the request includes a body. In this case, only HTTP methods that support uploading data are allowed to be used in the Method property.

SecureBridge Components, Copyright © 2007-2025 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support