<div dir="ltr"><div>Hello<br><br></div>I have this issue trying to use post_action<br><div><br></div><div>My config is like this:<br>location / {<br>            post_action /afterdownload;<br>...<br>...<br>...<br>location /afterdownload {<br>

            proxy_pass <a href="http://78.140.165.80/download_counter.php?FileName=$request&status=$request_completion">http://78.140.165.80/download_counter.php?FileName=$request&status=$request_completion</a>;<br>

            internal;<br>        }<br></div><div><br><br></div><div>How to escape the content of $request so it's a valid URL?<br><br></div><div>Right now the value there is like (from the log)<br><br>78.140.165.80 - - [04/Apr/2013:10:36:53 +0200] "GET /download_counter.php?FileName=GET /storage/files/0/1/17/176/myvideo.avi?md=IfHSTECs<br>

</div><div><br></div><div>I get a 400 (Bad request) for this call and I guess it's because the space after GET inside this variable.<br><br></div><div>How can I either escape or run a replace on it to remove GET_ from the beginning of it?<br>

</div><div><br clear="all"><div><div>---------------------------------------------------------------<br>Cristian Rusu<br>Web Development & Electronic Publishing<br>Phone: 40 723 625 808</div>
</div></div></div>