20 messages in ru.sysoev.nginxRe: 411 Length Required error
FromSent OnAttachments
Chris SaveryAug 17, 2008 12:13 am 
Igor SysoevAug 17, 2008 12:23 am 
Chris SaveryAug 17, 2008 6:40 am 
Chris SaveryAug 17, 2008 6:53 am 
Igor SysoevAug 17, 2008 6:56 am 
Igor SysoevAug 17, 2008 6:58 am 
Chris SaveryAug 17, 2008 5:03 pm 
Caesar IndraAug 17, 2008 9:00 pm 
Rocky ZhangNov 28, 2008 12:46 am 
Igor SysoevNov 28, 2008 1:04 am 
Rocky ZhangNov 28, 2008 7:26 am 
Rocky ZhangNov 28, 2008 7:50 am 
Igor SysoevNov 28, 2008 7:55 am 
Rocky ZhangNov 28, 2008 6:14 pm 
Dave CheneyDec 1, 2008 6:34 am 
Igor SysoevDec 1, 2008 6:38 am 
Rocky ZhangDec 1, 2008 8:33 am 
Dave CheneyDec 1, 2008 4:35 pm 
Mark MoseleyDec 1, 2008 5:08 pm 
Igor SysoevDec 2, 2008 1:24 am.Other
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: 411 Length Required errorActions...
From:Igor Sysoev (is@rambler-co.ru)
Date:Dec 1, 2008 6:38:08 am
List:ru.sysoev.nginx

On Tue, Dec 02, 2008 at 01:34:36AM +1100, Dave Cheney wrote:

It sounds like that browser is not spec compliant. You may have to fake a body by sending a form encoded parameter just to generate a dummy body.

It seems that Apache allowed always such requests (POSTs without Content-Length). I'm not sure should I add this ?

On 29/11/2008, at 1:15 PM, Rocky Zhang <lis@ruby-forum.com> wrote:

Unfortunately I found that when I use POST method to request an AJAX function, the browser sends a request with neither body nor "Content-Length: 0".

Igor Sysoev wrote:

On Fri, Nov 28, 2008 at 04:26:29PM +0100, Rocky Zhang wrote:

Yes. If there is no chunked body, it works fine. If there is, we could check its request header information and close it if we haven't implemented chunked body feature. Could we patch it?

I do not understand what yuo want to get.

Currently nginx does not support a chunked request body and returns 411 error code for such requests.

Also nginx returns the 411 error if a POST/PUT request has no "Content-Length". If the request has no body, then it must send "Content-Length: 0".