Thanks for your prompt reply. Why do I have to do the work in the post handler? Now I have a stub post handler. ngx_http_read_client_request_body() does nothing but load the request body into the original request, which is used by the next handler. Everything seems to be working fine to me. I'm not sure how to use the post handler to send a subrequest like a real handler which is polled multby wangweixun - Nginx Mailing List - English
Maxim, You are right. Since I need to make a hash of the original request's body, I do make call to ngx_http_read_client_request_body(). What's the best way to decrement the count then? Simply "r->count--;" before returning from the module. By the way, in my access phase module, I need to send an subrequest and wait for its response asynchornously. ngx_http_read_client_requesby wangweixun - Nginx Mailing List - English
BTW, I can add "r->count--;" in my module and it seems to work. But I don't feel it is the right thing especially when I'm not sure how it works.by wangweixun - Nginx Mailing List - English
Hey all, I'm writing an authentication module that is structurally very similar to ngx_http_auth_request_module (https://github.com/PiotrSikora/ngx_http_auth_request_module/blob/master/ngx_http_auth_request_module.c). It basically sends a subrequest to a service for auth. For testing, I put a hello_world module module (https://github.com/perusio/nginx-hello-world-module/blob/master/ngx_http_helby wangweixun - Nginx Mailing List - English
Hello every one! I have been working on Nginx for several projects and I really love it. I found the development forum is read-only. Is that because I do not have enough permission? If so, how do I get permission to do so? Thanks, Weixunby wangweixun - New Member Introductions