ltm rule command URI decodeΒΆ

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



URI::decode
       Returns a decoded version of a given URI.

SYNOPSIS
       URI::decode URI_STRING

DESCRIPTION
       Returns a URI decoded version of a given URI.  For details on URI
       encoding, see RFC3986, section 2.1. Percent-Encoding.

       This command is equivalent to the BIG-IP 4.X variable decode_uri.

       Syntax

       URI::decode 

	    * Returns a decoded version of a given URI.

RETURN VALUE
       Returns a decoded version of a given URI.

VALID DURING
       ANY_EVENT

EXAMPLES
	when HTTP_REQUEST {
	  log local0. "The decoded version of \"[HTTP::query]\" is \"[URI::decode [HTTP::query]]\""
	}

	Log output:

	The decoded version of "parameter=my%20URL%20encoded%20parameter%20value%20with%20metacharacters%20(%26*%40%23%5b%5d)" is "parameter=my URL encoded parameter value with metacharacters (&*@#[])"

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



BIG-IP				  2017-01-31			      iRule(1)