How to do url-encode/ decode inside nginx module ?

Vladimir Shebordaev vshebordaev at
Sun Aug 26 15:25:09 UTC 2012


There are ngx_escape_uri() /ngx_unescape_uri() functions in
src/core/ngx_string.c. They can transform strings in different ways
according to the last argument. If you need
NGX_ESCAPE_URI/NGX_UNESCAPE_URI ecoding types, please refer to SSI or
XSLT module for a usage pattern.

Hope it helps.


2012/8/26 Vivek Goel <goelvivek2011 at>:
> Is there already available function to do url encode/decode of data in nginx
> module development kit ?
> regards
> Vivek Goel
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at

More information about the nginx-devel mailing list