processing a request without body

Muhammad Nuzaihan zaihan at unrealasia.net
Wed Dec 13 07:55:56 UTC 2023


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