Forum Discussion
jaikumar_f5
Sep 05, 2018MVP
Try this too,
when HTTP_REQUEST {
set split ""
set split [getfield [getfield [HTTP::uri] "sn=" 2] "/" 1]
if { [string is digit $split] && [string length $split] == 10 && ([HTTP::uri] ends_with ".docx" || [HTTP::uri] ends_with ".xlsx")} {
HTTP::respond 200 content {
success
}
} else {
HTTP::respond 200 content {
failed
}
}
}