<p dir="ltr">On 2 Apr 2014 07:31, "Cristian Rusu" <<a href="mailto:crirus@gmail.com">crirus@gmail.com</a>> wrote:<br>
><br>
> Hello<br>
><br>
> I have a setup on nginx to count downloads.<br>
><br>
><br>
> location / {.<br>
> post_action /afterdownload;<br>
><br>
> Here I have a value in $arg_key<br>
><br>
> location /afterdownload {<br>
><br>
> I need $arg_key here<br>
><br>
> Any way to send it to /afterdownload section?</p>
<p dir="ltr">I believe it's available as a variable in that section already. You can add it as a custom header or path component however you're most comfortable. But why not reference it in the post_action statement? (I don't know that post_action /can/ take variables, so this suggestion might be null and void in the face of the documentation ... :-))</p>
<p dir="ltr">As an aside, IIRC people @nginx have stated publicly that post_action is a hack, and that its behaviour should not be relied on. I'm without Internets right now so can't find you the quote, but it was sufficient to put me off using it for an audit function a while back. Plus it pollutes your access logs with the final URI and/or response code served, not the first. </p>
<p dir="ltr">HTH, <br>
J<br>
</p>