Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 00A394D89 for ; Mon, 6 Jun 2011 14:21:57 +0000 (UTC) Received: (qmail 91628 invoked by uid 500); 6 Jun 2011 14:21:54 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 91463 invoked by uid 500); 6 Jun 2011 14:21:54 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 91454 invoked by uid 99); 6 Jun 2011 14:21:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 14:21:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 14:21:46 +0000 Received: from [192.168.245.129] (p549E8ED2.dip0.t-ipconnect.de [84.158.142.210]) by tor.combios.es (Postfix) with ESMTPA id 4BCAA22611B for ; Mon, 6 Jun 2011 16:21:24 +0200 (CEST) Message-ID: <4DECE24D.6040808@ice-sa.com> Date: Mon, 06 Jun 2011 16:21:01 +0200 From: =?UTF-8?B?QW5kcsOpIFdhcm5pZXI=?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: AW: specifying the content-type References: <15785B7E063D464C86DD482FCAE4EBA5014267AFB9E4@XCH11.scidom.de> <4DE54839.4080808@christopherschultz.net> <15785B7E063D464C86DD482FCAE4EBA5014267AFB9E7@XCH11.scidom.de> <4DE64850.8070700@christopherschultz.net> <15785B7E063D464C86DD482FCAE4EBA5014267AFB9F0@XCH11.scidom.de> <4DE68B3E.6060908@christopherschultz.net>,<4DE6B764.2090201@ice-sa.com> <15785B7E063D464C86DD482FCAE4EBA5014267CC8FF9@XCH11.scidom.de> <4DE7EC66.70605@ice-sa.com> <4DECDD13.8080804@christopherschultz.net> In-Reply-To: <4DECDD13.8080804@christopherschultz.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Christopher Schultz wrote: ... For whatever reason, httpd wants to send a > content-type and makes the default (text/plain) explicit for you if none > is present. .. per RFC 2616 : 7.2.1 Type ... Any HTTP/1.1 message containing an entity-body SHOULD include a Content-Type header field defining the media type of that body. If and only if the media type is not given by a Content-Type field, the recipient MAY attempt to guess the media type via inspection of its content and/or the name extension(s) of the URI used to identify the resource. If the media type remains unknown, the recipient SHOULD treat it as type "application/octet-stream". So I guess that Apache httpd is trying to do the right thing, as per the HTTP RFC. I would not be utterly surprised if httpd went to some length about this, and did some sniffing of its own on the response body, before it decides between "text/plain" and "application/octet-stream". And yes, this must be one of these rare case where IE happens to be in conformance with the RFC, when it sniffs a content that has no Content-type header. Based upon long experience, I think that this is purely an oversight by the IE developers however. ;-) --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org