GetWebVariableLength (open)
Get the total length of the contents of a variable
Syntax
LOADLIB "mod::system/lib/webserver.whlib";
INTEGER FUNCTION GetWebVariableLength(STRING name)
Parameters
STRING name
Name of a variable passed through the URL or a POST request
Return value
INTEGER
The length of the contents of the variable, in bytes
Description
GetWebVariableLength() is used to find the length of the contents of a variable passed through the URL or a POST request. This function can be very usefull to check whether a variable's content is bigger than 4096 bytes, in which case the GetWebVariable() function is of no use, and the GetWebBlobVariable() function should be used.