processing a request without body

Muhammad Nuzaihan zaihan at unrealasia.net
Wed Dec 13 08:32:15 UTC 2023


Hi,

Sorry about the previous email. I meant
ngx_http_top_request_body_filter is not executed whenever there is no
body.

Thank you,
Muhammad Nuzaihan

On Wed, Dec 13, 2023 at 3:55 PM Muhammad Nuzaihan <zaihan at unrealasia.net> wrote:
>
> Hi,
>
> I need to process requests with only URI path (without body) for a module.
>
> It seems ngx_http_request_body_filter_pt is *not* executed whenever
> there is a request without a body (it looked like it bypassed without
> request body) and only ngx_http_output_body_filter_pt  part of the
> code is executed.
>
> For example i do a request curl curl like this:
>
> curl -vvvv -X POST http://localhost:8080/proxy/profile/alice/comment
>
> and i need to validate /proxy/profile/alice/comment in my module and
> there is no http headers and no body. Only URI path.
>
> Is there something similar done before?
>
> Thank you,
> Muhammad Nuzaihan


More information about the nginx-devel mailing list