Hi, If I have a URI as: /page?v=abc&b=1#t=80how can I get all the information. ngx.var.request_uri just gives /page?v=abc&b=1
"All the information" isn't a clear question, but assuming you want to examine the query string variables, have a look at https://github.com/openresty/lua-nginx-module#ngxreqget_uri_args, which returns a table. Additionally, the ngx.var.uri variable holds the (normalized) URI, (e.g. "/page").
Hi,On Thu, Jul 7, 2016 at 11:44 AM, aryajur via openresty-en <openresty-en@googlegroups.com> wrote:Hi, If I have a URI as: /page?v=abc&b=1#t=80how can I get all the information. ngx.var.request_uri just gives /page?v=abc&b=1"All the information" isn't a clear question, but assuming you want to examine the query string variables, have a look at https://github.com/openresty/lua-nginx-module#ngxreqget_uri_args, which returns a table. Additionally, the ngx.var.uri variable holds the (normalized) URI, (e.g. "/page"). .
Hash fragments are never passed to a web server by a web browser, you will not be able to get the "#random=data" part of that url.