Maxim Dounin
July 16, 2021 12:52PM
Hello!

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
http://mdounin.ru/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

body filter redirect

dnj0496 686 July 12, 2021 03:48PM

Re: body filter redirect

Maxim Dounin 219 July 13, 2021 10:50AM

Re: body filter redirect

dnj0496 399 July 14, 2021 12:30AM

Re: body filter redirect

dnj0496 419 July 15, 2021 11:42PM

Re: body filter redirect

Maxim Dounin 250 July 16, 2021 12:52PM



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

Online Users

Guests: 302
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