<div>Hello,</div><div><br></div><div>I have the impression that $request_body isn't available until the content-handlers phase. Is that correct?</div><div><br></div><div>Is it possible to hack nginx such that the rewrite phase is delayed until after the request_body is available? I am writing a module that analyzes requests during the rewrite phase to determine where to route them. The goal is to use online machine learning to detect suspicious requests and re-route them to a quarantine. <a href="http://mikegagnon.com/2012/06/08/beer-garden/">http://mikegagnon.com/2012/06/08/beer-garden/</a></div>
<div><br></div><div>If I have access to the request_body during the rewrite phase then my request classifier will be better at detecting suspicious requests (since it has more information about requests).</div><div><br></div>
<div>Thanks!</div><div>Mike Gagnon</div><div><br></div><div><br></div>