Lasso Soft Inc. > Home

[ web_request->contentLength ]

Method

The [web_request->contentLength] method returns the length of the post data sent to the server.

  • Syntax
web_request->contentLength
Examples
  • Beginner

Determine whether any post parameters were passed

The code below will output 'No POST data' if the web server was not passed any post parameters and 'POST data' if it was passed post parameters.

Code

web_request->contentLength == 0 ? 'No '
'POST data'

Result

No POST data

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft