Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 3444 invoked by uid 500); 9 Nov 2002 16:37:51 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 3433 invoked from network); 9 Nov 2002 16:37:51 -0000 Received: from unknown (HELO wolff.to) (66.93.197.35) by daedalus.apache.org with SMTP; 9 Nov 2002 16:37:51 -0000 Received: (qmail 19560 invoked by uid 500); 9 Nov 2002 16:47:32 -0000 Date: Sat, 9 Nov 2002 10:47:32 -0600 From: Bruno Wolff III To: users@httpd.apache.org Message-ID: <20021109164732.GA19455@wolff.to> Mail-Followup-To: users@httpd.apache.org References: <20021108193604.GB7826@wolff.to> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021108193604.GB7826@wolff.to> User-Agent: Mutt/1.3.25i X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] Content-length and mod_deflate and mod_include On Fri, Nov 08, 2002 at 13:36:04 -0600, Bruno Wolff III wrote: > I have been having some problems with people using some versions of IE > viewing web pages on my site when compression is turned on. > I am running 2.0.44 from CVS as of a couple a days ago, but the problem > has been going on for a while. > I suspect the problem may be related to the content-length header. > Looking at the source suggests that both mod_deflate and mod_include > try to suppress the content-length header. However, the responses > end up including one. The response seems to be off by 20 bytes. > You can verify this by going to: > http://www.schroepl.net/cgi-bin/http_trace.pl > and entering a url of http://wolff.to/area/G_776.html using a browser > that doesn't include 'MSIE' in its user-agent header and that can accept > gzip encoding. I did a bit more research on this and the bad combination seems to be using the DEFLATE filter being applied to CGI output. INCLUDES and DEFLATE applied to files works OK. The content-length header does not appear when the INCLUDE filter is applied to CGI output, but it does when the DEFLATE filter is applied to CGI output (with or witout an INCLUDES filter). The value of the content-length header is off by 20 bytes. Sometimes it is high and sometimes it is low. A HEAD request returned a content-length of 20 bytes, but no body was returned. For GET requests I have just noticed the content-length header being low by 20 bytes. I am pretty convinced that this is a bug, and may be responsible for causing problems with some versions of IE. Since I posted here just yesterday afternoon, I didn't want to submit an official bug report just yet. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org