Welcome! Log In Create A New Profile

Advanced

Re: How to modify a POST arg within Nginx?

Maxim Dounin
April 28, 2014 08:54AM
Hello!

On Mon, Apr 28, 2014 at 04:59:54AM +0000, Elvis Deng wrote:

> Hi all,
>
> I want to modify a POST value in Nginx and then put it back (don't change its original data flow).
> Does any existing module do the similar work? Thanks.

For simple use cases, the proxy_set_body directive can be used,
see http://nginx.org/r/proxy_set_body.

Some 3rd party modules try to read request body themself and/or
read it and then restart request processing with internal redirect
or something like, but this is more or less a hack.

An API for a generic request body modifications isn't yet here,
though there is an experminental patch previously published,
see here:

http://mailman.nginx.org/pipermail/nginx-devel/2013-March/003492.html

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

How to modify a POST arg within Nginx?

Elvis Deng 730 April 28, 2014 01:02AM

Re: How to modify a POST arg within Nginx?

Maxim Dounin 304 April 28, 2014 08:54AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 262
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready