Available in all subroutines.

Decodes a percent-encoded string. For example, urldecode({"hello%20world+!"}); and urldecode("hello%2520world+!"); will both return "hello world !".

This function is not prefixed with the std. namespace.


set req.http.X-Cookie = regsub(req.url, ".*\?cookie=", "");
set req.http.Cookie = urldecode(req.http.X-Cookie);

User contributed notes

We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.