$request_header_length and $request_body_length?

Maxim Dounin mdounin at mdounin.ru
Tue Jul 9 12:03:45 UTC 2013


Hello!

On Mon, Jul 08, 2013 at 10:20:08PM -0400, est wrote:

> Hello,
> 
> I am trying to diagnose a weird 408 error problem on nginx.
> 
> My theory is that the client might be using some kind of crack making the
> request body too short for Content-Length header, so nginx waits more data
> and ultimately fails at 60 seconds timeout.
> 
> I tried to add few more log options, like $content_length and
> $request_length, however, the $request_length includes all the header and
> body length, thus  can not get actuall body length.
> 
> Does nginx provide variables like $request_header_length  and
> $request_body_length?

No, there is no such variables.

For debugging purposes there is debug log provided, see 
http://nginx.org/en/docs/debugging_log.html.

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



More information about the nginx mailing list