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