Welcome! Log In Create A New Profile

Advanced

Get $request_body before content handlers?

Mike Gagnon
July 07, 2012 07:42PM
Hello,

I have the impression that $request_body isn't available until the
content-handlers phase. Is that correct?

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. http://mikegagnon.com/2012/06/08/beer-garden/

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).

Thanks!
Mike Gagnon
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Get $request_body before content handlers?

Mike Gagnon 1256 July 07, 2012 07:42PM

Re: Get $request_body before content handlers?

agentzh 503 July 07, 2012 11:20PM

Re: Get $request_body before content handlers?

Mike Gagnon 401 July 08, 2012 05:40PM

Re: Get $request_body before content handlers?

agentzh 448 July 09, 2012 12:52AM

Re: Get $request_body before content handlers?

Mike Gagnon 404 July 08, 2012 07:30PM

Re: Get $request_body before content handlers?

Mike Gagnon 495 July 08, 2012 08:20PM

Re: Get $request_body before content handlers?

agentzh 765 July 09, 2012 01:00AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 219
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready