Re: [HASMAT] Parsing Content-Type
Adam Barth <ietf@adambarth.com> Tue, 13 July 2010 16:11 UTC
Return-Path: <ietf@adambarth.com>
X-Original-To: hasmat@core3.amsl.com
Delivered-To: hasmat@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 520183A697D for <hasmat@core3.amsl.com>; Tue, 13 Jul 2010 09:11:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.585
X-Spam-Level:
X-Spam-Status: No, score=-1.585 tagged_above=-999 required=5 tests=[AWL=0.392, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0enGp5e3bBBn for <hasmat@core3.amsl.com>; Tue, 13 Jul 2010 09:11:12 -0700 (PDT)
Received: from mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) by core3.amsl.com (Postfix) with ESMTP id E10B63A6A36 for <hasmat@ietf.org>; Tue, 13 Jul 2010 09:11:11 -0700 (PDT)
Received: by pwj1 with SMTP id 1so2794871pwj.31 for <hasmat@ietf.org>; Tue, 13 Jul 2010 09:11:18 -0700 (PDT)
Received: by 10.142.211.5 with SMTP id j5mr19012272wfg.158.1279037478252; Tue, 13 Jul 2010 09:11:18 -0700 (PDT)
Received: from mail-gy0-f172.google.com (mail-gy0-f172.google.com [209.85.160.172]) by mx.google.com with ESMTPS id s29sm4994113vcr.23.2010.07.13.09.11.17 (version=SSLv3 cipher=RC4-MD5); Tue, 13 Jul 2010 09:11:17 -0700 (PDT)
Received: by gyh3 with SMTP id 3so3629874gyh.31 for <hasmat@ietf.org>; Tue, 13 Jul 2010 09:11:16 -0700 (PDT)
Received: by 10.150.97.4 with SMTP id u4mr133762ybb.364.1279037476340; Tue, 13 Jul 2010 09:11:16 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.231.143.145 with HTTP; Tue, 13 Jul 2010 09:10:56 -0700 (PDT)
In-Reply-To: <4C3C4831.5000007@gmx.de>
References: <op.vfr1o4on64w2qv@annevk-t60> <4C3C4831.5000007@gmx.de>
From: Adam Barth <ietf@adambarth.com>
Date: Tue, 13 Jul 2010 09:10:56 -0700
Message-ID: <AANLkTilTSZHIdCxQ8Ip_c7aRHNYYQSghsRaPYFY9_VNM@mail.gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Content-Type: text/plain; charset="ISO-8859-1"
Cc: hasmat@ietf.org
Subject: Re: [HASMAT] Parsing Content-Type
X-BeenThere: hasmat@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: HTTP Application Security Minus Authentication and Transport <hasmat.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hasmat>, <mailto:hasmat-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hasmat>
List-Post: <mailto:hasmat@ietf.org>
List-Help: <mailto:hasmat-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hasmat>, <mailto:hasmat-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Jul 2010 16:11:13 -0000
On Tue, Jul 13, 2010 at 4:04 AM, Julian Reschke <julian.reschke@gmx.de> wrote: > On 13.07.2010 12:21, Anne van Kesteren wrote: >> I was wondering if http://tools.ietf.org/html/draft-abarth-mime-sniff >> should not contain the error handling rules for parsing the Content-Type >> as well. It seems potentially dangerous if one user agent were to treat >> the value "text/html;" as bogus and fallback to "text/plain" whereas >> another would treat it as "text/html". The draft used to contain the parsing rules for extracting the charset, etc. My guess is that this draft will be controversial enough as is. > If the *intent* was to send "text/html" then the only problem I see is that > some recipients would see plain text. Indeed. That sort of mis-match is likely to be a bad user experience if it occurs. > Speaking of which: why would the fallback be "text/plain"? It depends on how the UA treats text/potato. It would not be unreasonable to treat text/potato similarly to text/plain, depending on the UA's purpose. > If the intent was different, why send the header in the first place? That's a question for the server operator. I can look up this particular sequence of bytes, but server do end up sending a bunch of crazy things for whatever reason. The UA is then faced with the question of how to interpret the response. Adam
- [HASMAT] Parsing Content-Type Anne van Kesteren
- Re: [HASMAT] Parsing Content-Type Julian Reschke
- Re: [HASMAT] Parsing Content-Type Adam Barth
- Re: [HASMAT] Parsing Content-Type Julian Reschke
- Re: [HASMAT] Parsing Content-Type Adam Barth
- Re: [HASMAT] Parsing Content-Type Julian Reschke