url escape variable

Cristian Rusu crirus at gmail.com
Thu Apr 4 08:43:06 UTC 2013


I have this issue trying to use post_action

My config is like this:
location / {
            post_action /afterdownload;
location /afterdownload {

How to escape the content of $request so it's a valid URL?

Right now the value there is like (from the log) - - [04/Apr/2013:10:36:53 +0200] "GET

I get a 400 (Bad request) for this call and I guess it's because the space
after GET inside this variable.

How can I either escape or run a replace on it to remove GET_ from the
beginning of it?

Cristian Rusu
Web Development & Electronic Publishing
Phone: 40 723 625 808
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130404/75b109e5/attachment.html>

More information about the nginx mailing list