libraries:restwebservice:restrequestclass:getcontentlength
RestRequest::getContentLength()
Definition
Returns the byte length of the content sent by the request (usually used by POST/PUT).
Integer getContentLength ( )
Returns
- Integer
Byte length of the content sent to the webservice entpoint
Example
$Request = new RestRequest(); // Called endpoint is: [PUT] https://www.domain.com/webservice/accounting/booking // Content is: "id:5,account:1234,name:Mr. Smith,amount:592.30" $LengthOfContent = $Request->getContentLength(); // 46
libraries/restwebservice/restrequestclass/getcontentlength.txt · Last modified: 2022/12/21 19:34 by michael.pohl