Manipulating the body of a PUT/POST

Adam Hasselbalch Hansen ahh at
Fri Feb 3 08:50:54 UTC 2012

Hi there,

I am wondering if there is a way to manipulate the contents of a 
PUT/POST (the request body) in a similar way that filters can manipulate 
the body of a GET?

Would it e.g. be feasible (or even possible) to do a 
ngx_http_read_client_request_body somewhere, mess about with the body, 
and then somehow (how?) shove it back into the request, before passing 
it on to whatever handles the actual writing (dav) or POST-processing 
(php, whatever) or even upstream to a proxy backend?

Any thoughts appeciated!


More information about the nginx-devel mailing list