Hello!

On Fri, Jun 28, 2013 at 01:25:20PM +0530, Pranay Kanwar wrote:

> Hi,
> 
> What is the correct way to get request body in a log phase handler module ?
> 
> The usual method of ngx_http_read_client_request_body via a handler doesn't
> work,
> the r->request_body->bufs is always NULL.
> 
> The handler works fine in other phases (for example the pre access phase).

At the log phase it's already too late to read body - it's either 
read or discarded by previous code (and the connection might be 
already closed).

-- 
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to