Forum Discussion
Dev_16_371257
Sep 05, 2018Nimbostratus
http://www.hostname.com/uripath/sn=1234567890/abouttoopenhomepage.docx
---- Ho to add the length verification which will pass the 10 digit SN_value !
when HTTP_REQUEST {
set SN_value [getfield [getfield [HTTP::path] "/" 2] "=" 2] if { [string is digit $SN_value] && ([HTTP::uri] ends_with ".docx" or ".xlsx") }
{ log local0. "Correct File extension && The uri path entry $SN_value is okay (all digits)." return } else { log local0. "The URL path entry $SN_value is not okay (non-digit characters were found)." } }