URI::basename

Description

Extracts the basename part of a given uri string.
For the following URI:
/main/index.jsp?user=test&login=check

The basename is:
index.jsp

Syntax

URI::basename <uri>

URI::basename <string>

  • Extracts the basename part of a given uri string.

Examples

when HTTP_REQUEST {
  set base [URI::basename [HTTP::uri]]
  log local0. "Basename of uri [HTTP::uri] is $base"
}