Welcome! Log In Create A New Profile

Advanced

How to access query parameter names with '-' in it

November 12, 2014 03:38AM
If query parameters in the request looks like this

/something.cgi?param_name=1&param-name=2

I can access 'param_name' as $arg_param_name. How do I access 'param-name' though? $arg_param-name will not work since as far as nginx is concerned the variable name ends at $arg_param. Is there a workaround for this case? Has anyone else run into a similar problem?
Subject Author Posted

How to access query parameter names with '-' in it

sudarshan November 12, 2014 03:38AM

Re: How to access query parameter names with '-' in it

sudarshan November 12, 2014 05:36AM

Re: How to access query parameter names with '-' in it

Francis Daly November 12, 2014 05:46PM

Re: How to access query parameter names with '-' in it

Jonathan Kolb November 13, 2014 09:40AM

Re: How to access query parameter names with '-' in it

Maxim Dounin November 13, 2014 09:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 69
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready