Manipulating the body of a PUT/POST
Adam Hasselbalch Hansen
ahh at one.com
Fri Feb 3 10:18:52 UTC 2012
On 2012-02-03 11:04, Maxim Dounin wrote:
>> 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?
> Currently there is no easy way. Some modules (e.g. Valery
> Kholodkov's upload module) currently do this by reading request
> body by their own code.
> I'm working on prototyping input body filtering, it's expected to
> appear somewhere in 1.2.x. It will allow manipulation of request
> body, as well as other tasks like content inspection and so on.
That sounds promising! Until then, I'll have a look at the upload
module, see what's going on there.
Thanks for the pointer,
More information about the nginx-devel