The length function returns the length of its argument, that is, a number representing the length of the string.
length(string)
The following table describes the argument for the expression function.
Table A–11 length Argument
Argument |
Description |
---|---|
string |
The string for which the expression function computes the length. |
The following obj.conf code can be used to send a 404 Not found error to clients that request URIs longer than 255 bytes:
<If length($uri) > 255)> PathCheck fn="deny-existence" </If>