URI::decode

Description

Returns a URI decoded version of a given URI. For details on URI (or percent encoding), see this Wikipedia page: Percent encoding
This command is equivalent to the BIG-IP 4.X variable decode_uri.

Syntax

URI::decode <uri>

URI::decode <uri>

  • Returns a decoded version of a given URI.

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 (&*@#[])"