Get the request_body in a handler

Hi, I’m trying to make a module that will get the body of http requests
print it in my log.

I tried to access the variable r->request_body (r is a
ngx_http_request_t *)
and it’s always empty.
I also know that the content is saved in a temp file, so maybe I can get
but I don’t know also how to find the name of this temp file.

Do you have any idea ?

Thank you :slight_smile:

Posted at Nginx Forum: