411 Length Required error
is at rambler-co.ru
Sun Aug 17 17:56:47 MSD 2008
On Sun, Aug 17, 2008 at 08:53:55PM +0700, Chris Savery wrote:
> My mistake on that last message. I read the wrong headers info.
> It seems ngninx reports no Content-Length header was sent but according
> to Firebug these are the headers - note it says Content Length is
> present and chunked not mentioned...
> Host www.xxxx.com
> User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:220.127.116.11)
> Gecko/2008072820 Firefox/3.0.1
> Accept-Language en-us,en;q=0.5
> Accept-Encoding gzip,deflate
> Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive 300
> Connection keep-alive
> X-Requested-With XMLHttpRequest
> Content-Type application/x-www-form-urlencoded; charset=utf-8
> Referer http://www.xxxx.com/
> Content-Length 120
> Cookie XXXXXSession=3ce34bb3dbc257ff61405175f941f1d7
> Pragma no-cache
> Cache-Control no-cache
Then only nginx debug log or tcpdump will help.
> Igor Sysoev wrote:
> >On Sun, Aug 17, 2008 at 02:14:18PM +0700, Chris Savery wrote:
> >>I've been getting this error a lot in my testing. I never received it
> >>with Apache. I understand what the message say but not why it's coming
> >>about. My headers being sent have length. Or is this message referring
> >>to content returned by PHP at the server end? I'm sure one of you
> >>experts here knows what's going on with this. I only get it on POST
> >>requests and not most of my ajax calls (which are GET).
> >>Thanks for any help with tracking this down. I'm seeing it in Firebug
> >>and when it occurs I cannot see the real response content - even though
> >>code and updates the screen. Weird.
> >>Chris :)
> >Set error_log level to info:
> >error_log /path/to/log info;
> >Then nginx will log a reason. Now there are 3 reasons:
> >"client sent invalid "Content-Length" header"
> >"client sent ... method without "Content-Length" header"
> >"client sent "Transfer-Encoding: chunked" header"
> >The last reason is nginx feature: it still does not support chunked body.
> >>Response from server:
> >><head><title>411 Length Required</title></head>
> >><body bgcolor="white">
> >><center><h1>411 Length Required</h1></center>
> >>Header sent to server using ajax (only removed some identity info, HOST
> >>User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:18.104.22.168)
> >>Gecko/2008072820 Firefox/3.0.1
> >>Accept-Language en-us,en;q=0.5
> >>Accept-Encoding gzip,deflate
> >>Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
> >>Keep-Alive 300
> >>Connection keep-alive
> >>X-Requested-With XMLHttpRequest
> >>Content-Type application/x-www-form-urlencoded; charset=utf-8
> >>Referer http://www.xxxxx.com/
> >>Content-Length 269
> >>Cookie ZZZZSession=3ce34bb3dbc257ff61405175f941f1d7
> >>Pragma no-cache
> >>Cache-Control no-cache
More information about the nginx