ltm rule command URI basenameΒΆ

iRule(1)					  BIG-IP TMSH Manual					     iRule(1)

URI::basename
       Extracts the basename part of a given uri string.

SYNOPSIS
       URI::basename URI_STRING

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 

	    * Extracts the basename part of a given uri string.

RETURN VALUE
       Return the basename part of a given uri string.

VALID DURING
       ANY_EVENT

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

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-9.0.0 --First introduced the command.

BIG-IP						      2020-06-23					     iRule(1)