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

sudarshan nginx-forum at nginx.us
Wed Nov 12 08:38:03 UTC 2014


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?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254782,254782#msg-254782



More information about the nginx mailing list