Red Hat Bugzilla – Bug 569354
Squid reports 411 with PUT/POST request without Content-Length
Last modified: 2014-02-12 10:36:26 EST
Created attachment 397048 [details]
Allow PUT/POST without Content-Length
Description of problem:
Squid doesn't work for websites which do PUT/POST requests without Content-Length header. It replies with a TCP_DENIED/411 instead of processing the request which seems to be perfectly valid.
Version-Release number of selected component (if applicable):
Let you browser do such a request.
TCP_DENIED/411 2392 POST http://mainoffice.xxxxx.de/intern/modules/logon/session_refresh.php? - NONE/- text/html
TCP_MISS/200 815 POST http://mainoffice.xxxxx.de/intern/modules/logon/session_refresh.php? - DIRECT/xx.xxx.xx.xxx text/html
The bug is fixed in upstream squid-2.6.STABLE23.
The fix below with attached patch fixes it for me.
Note: The same patch also fixes it for RHEL4.
--- squid-2.6.STABLE21-3.el5.src/squid.spec 2008-09-09 14:34:21.000000000 +0200
+++ squid-2.6.STABLE21-3.el5.invoca1.src/squid.spec 2010-03-01 12:20:43.000000000 +0100
@@ -5,7 +7,7 @@
Summary: The Squid proxy caching server.
Group: System Environment/Daemons
@@ -32,6 +34,7 @@
Prereq: /sbin/chkconfig logrotate shadow-utils
@@ -63,6 +66,7 @@
%patch205 -p1 -b .fd-config
%patch206 -p1 -b .config
%patch207 -p1 -b .chk_unix_group
+%patch1000 -p1 -b .post_content-length
export CFLAGS="-D_FORTIFY_SOURCE=2 -fPIE -Os -g -pipe -fsigned-char" ; export LDFLAGS=-pie ;
@@ -327,6 +331,9 @@
chgrp squid /var/cache/samba/winbindd_privileged >/dev/null 2>&1 || :
+* Mon Mar 01 2010 Simon Matter <firstname.lastname@example.org> 7:2.6.STABLE21-3.invoca1
+- allow missing content-length with PUT/POST request
* Wed Sep 03 2008 Jiri Skala <email@example.com> 7:2.6.STABLE21-3
- Resolves: #245304 optimizing init script
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.
This request was erroneously denied for the current release of
Red Hat Enterprise Linux. The error has been fixed and this
request has been re-proposed for the current release.
This Bugzilla has been reviewed by Red Hat and is not planned on being
addressed in Red Hat Enterprise Linux 5, and therefore will be closed.
If this bug is critical to production systems, please contact your Red
Hat support representative and provide sufficient business
justification. Issue is already fixed in RHEL-6/7.