Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 12833 invoked from network); 23 Mar 2006 23:22:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Mar 2006 23:22:34 -0000 Received: (qmail 21180 invoked by uid 500); 23 Mar 2006 23:22:25 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 21171 invoked by uid 500); 23 Mar 2006 23:22:25 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 21155 invoked by uid 99); 23 Mar 2006 23:22:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Mar 2006 15:22:25 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [210.55.246.29] (HELO harvest.com) (210.55.246.29) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Mar 2006 15:22:22 -0800 Received: from [192.168.7.149] by harvest.com (MDaemon.PRO.v8.0.2.R) with ESMTP id md50000059115.msg for ; Fri, 24 Mar 2006 11:21:59 +1200 Message-ID: <44232D94.1010108@harvest.com> Date: Fri, 24 Mar 2006 11:21:56 +1200 From: Ben Hoyt User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: ben.hoyt@harvest.com X-Spam-Processed: harvest.com, Fri, 24 Mar 2006 11:21:59 +1200 (not processed: message from valid local sender) X-MDRemoteIP: 192.168.7.149 X-Return-Path: ben.hoyt@harvest.com X-MDaemon-Deliver-To: users@httpd.apache.org X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] "Content-Length: 0" problem in GET request X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi all, I've got a problem with a "Content-Length: 0" header in GET requests. I discovered it because some requests from newish mobile phone browsers weren't working. Anyway, I captured the headers these phones were sending in the GET request, and narrowed it down to them having a "Content-Length: 0" header line. If the request has that "Content-Length: 0" header line (these mobiles send it), Apache sends the wrong page---it always sends the home page of the site. If the request doesn't have the Content-Length line (most other browsers), Apache works fine---i.e., sends the correct page. So this works (try it with "telnet harvest.com 80"): GET /he HTTP/1.0 but this doesn't (i.e., returns the site's main page instead of /he): GET /he HTTP/1.0 Content-Length: 0 (And it's not a HTTP 1.0 vs 1.1 issue---if I add a "Host: harvest.com" line and change the GET to "GET /he HTTP/1.1" it still has the same "Content-Length: 0" problem.) It seems like an Apache or Apache config issue, because I don't think there's a problem including that "Content-Length: 0" header in the GET request ... though I could be missing something obvious. Any pointers or info would be much appreciated. I'm using Apache 2.0.47 under Win32 (WinXP SP2). Thanks heaps, Ben. -- Ben Hoyt | ben.hoyt@harvest.com Harvest Electronics | PO Box 446 | 10 Pragnell St | Masterton | New Zealand http://www.harvest.com | Tel +64 6 370 1991 | Fax +64 6 370 1993 --------------------------------------------------------------------- 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