I moved from Apache 2.0 to Lighttpd 1.4.11. I'm getting the error : POST-request, but content-length missing -> 411 anytime someone tries to post a comment on WORDPRESS. Only some logged in users are able to post a message. I've tried with OPERA, and Firefox. All Latest versions, and the situation is the same. Is there anyway to turn it off ? I've enabled Zlib compression and output buffering on php, and this has helped somewhat. Some people ARE able to post - but it is still showing up sometimes, so it's definately not gone away. Any help would be appreciated. Thanks.
on 23.03.2006 07:07
on 05.05.2006 20:26
NAPPA wrote: > I moved from Apache 2.0 to Lighttpd 1.4.11. I'm getting the error : > > POST-request, but content-length missing -> 411 > > anytime someone tries to post a comment on WORDPRESS. Only some logged > in users are able to post a message. I've tried with OPERA, and Firefox. > All Latest versions, and the situation is the same. > > Is there anyway to turn it off ? I've enabled Zlib compression and > output buffering on php, and this has helped somewhat. Some people ARE > able to post - but it is still showing up sometimes, so it's definately > not gone away. Any help would be appreciated. Thanks. Anyone else run into this? Had this happen today except the POST worked in Firefox but not IE ... it was over HTTPS if thats any indication. Pete
on 05.05.2006 20:50
I'm not sure about your situation NAPPA, but this article seem to sum up my situation pretty well: http://telanis.cns.ualberta.ca/ Pete
on 06.05.2006 15:54
Pete Lavetsky wrote: > I'm not sure about your situation NAPPA, but this article seem to sum up > my situation pretty well: http://telanis.cns.ualberta.ca/ > > Pete That doesn´t help me as I am not running HTTPS. I get alot of these errors and it is really annoying as it worked perfectly with apache. Any help would be appreciated as I really like lighttpd otherwise.
on 27.03.2007 13:59
would like to revive this topic. anyone made progress? i am facing a similar problem of having content-length = null when data is posted. svn seems to have some fixes in connection.c i tried but still no improvement.
on 09.04.2007 18:33
> would like to revive this topic. anyone made progress?
Sorry to hear you haven't found a solution. I encountered this HTTP
error while moving an async web app (i.e., AJAX) from Apache v2 to IIS,
so it's not just a lighttpd issue. Apache accepts requests from IE 7 and
Fx 2 OK, but on the new (IIS) server platform, IE 7 requests work, and
Fx 2 don't. Apparently, some issue with what HTTP request headers
Firefox sends to servers, probably best fixed by some server setting.
I'm still researching. Good luck 2U in the meantime.
on 20.06.2007 23:29
Good info on this issue here: http://www.sitepoint.com/forums/showthread.php?t=414248 Basic, AFAIK, Apache is lax about requiring content-length (Lighttpd and IIS both fail if it's missing) so that lots of javascript doesn't include a payload (they only tested on Apache). Firefox is the only browser that doesn't set content-length if the payload is null. The solution is to fix your app's javascript to send an empty string instead of null for the payload.

