Welcome! Log In Create A New Profile


Re: body filter redirect

Maxim Dounin
July 16, 2021 12:52PM

On Tue, Jul 13, 2021 at 09:28:15PM -0700, Dk Jack wrote:

> Hello Maxim,
> Thanks for responding. Can I get some clarification on what you mean by the
> statement below:
> "More flexibility can be achieved by reading the request body
> earlier - for example, you can do this from your own module, or
> with embedded scripting such as perl or njs."
> Are you suggesting that I use ngx_http_read_client_request_body api in my
> module?
> http://nginx.org/en/docs/dev/development_guide.html#http_request_body

That's one of the possible solutions.

> I had similar trouble using that API with redirection. Are there some
> tricks to getting
> it to work when using that API? Are there any reference implementations
> doing
> redirection after inspecting the request body?

Refer to the mirror module to see how to restore request phases
processing after reading the request body, it might be helpful.

Maxim Dounin
nginx-devel mailing list
Subject Author Views Posted

body filter redirect

dnj0496 131 July 12, 2021 03:48PM

Re: body filter redirect

Maxim Dounin 18 July 13, 2021 10:50AM

Re: body filter redirect

dnj0496 17 July 14, 2021 12:30AM

Re: body filter redirect

dnj0496 12 July 15, 2021 11:42PM

Re: body filter redirect

Maxim Dounin 13 July 16, 2021 12:52PM

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

Online Users

Guests: 54
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready