accessing $arg_PARAMETER for parameter with . in it

bluesmoon nginx-forum at nginx.us
Wed Jul 11 05:39:19 UTC 2012


Hi,

I have a query string parameter that has a dot in it.  For example,
`a.b`.  I need to write this parameter to my log file.  How do I
reference it?

I've tried `$arg_a.b` but that prints `-.b` (ie, it prints the value of
$arg_a which is - followed by .b)

I've also tried `$arg_a_b` but that just prints `-` since there is no
parameter a_b or a-b.

What should I do?

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



More information about the nginx mailing list