Re: [apps-discuss] Feedback on multipart/form-data

Phillip Hallam-Baker <hallam@gmail.com> Fri, 20 September 2013 15:08 UTC

Return-Path: <hallam@gmail.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B338E21F96B1 for <apps-discuss@ietfa.amsl.com>; Fri, 20 Sep 2013 08:08:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.978
X-Spam-Level:
X-Spam-Status: No, score=-2.978 tagged_above=-999 required=5 tests=[AWL=0.620, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mIFHRxeHF8Wb for <apps-discuss@ietfa.amsl.com>; Fri, 20 Sep 2013 08:08:22 -0700 (PDT)
Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by ietfa.amsl.com (Postfix) with ESMTP id 9E82421F9654 for <apps-discuss@ietf.org>; Fri, 20 Sep 2013 08:08:21 -0700 (PDT)
Received: by mail-lb0-f175.google.com with SMTP id y6so653247lbh.34 for <apps-discuss@ietf.org>; Fri, 20 Sep 2013 08:08:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=9ZTqw5Xv3/2ma6nIQDAQMhkGf6lct8N/cy8rRqROOX0=; b=q22vsIBHC/xIriWFajFQ/bPhBpq1UNMKRtmcdueW3Ip1BU2vUEB4uWSMFKtk6dXNPt wJt5Q/RqdR+zy9l5lKv9ZpubwkWEs83dgpxvlvT0uvRXXfonfhhtnTz91lXULSQn5jz2 RzvQLF1IuyRnPA1fsncbB8cm+JNl/dNXbPna8oh83b+iwSn6azydEnvu6E6N/Qx8UIxd K8YsRp2vCqANnmb9eCqdTxQFRToLV+dqDzIyJXzuP47V/pxGoONIjFexzKsj9vgI4fBo /ZOOyb77Np0AvmtYlRO7OwupyJStI69joln5UIeQQ5r7jqd7/02XjPerfKaVGStBbtH2 dLmQ==
MIME-Version: 1.0
X-Received: by 10.152.22.198 with SMTP id g6mr6429672laf.5.1379689684316; Fri, 20 Sep 2013 08:08:04 -0700 (PDT)
Received: by 10.112.148.165 with HTTP; Fri, 20 Sep 2013 08:08:04 -0700 (PDT)
In-Reply-To: <FzjBuuVofiNiTEs5YEVebONBNF9B6DzdGs-c_PLo6mrQ38Nmg@smtp.gmail.com>
References: <FzjBuuVofiNiTEs5YEVebONBNF9B6DzdGs-c_PLo6mrQ38Nmg@smtp.gmail.com>
Date: Fri, 20 Sep 2013 11:08:04 -0400
Message-ID: <CAMm+Lwgj_v0-xJV-1YpWOQ8wkWND2J1ob8nTQgwjHC+Pvht8ZQ@mail.gmail.com>
From: Phillip Hallam-Baker <hallam@gmail.com>
To: Dave Cridland <dave@cridland.net>
Content-Type: multipart/alternative; boundary="089e0160bab088b70404e6d20918"
Cc: Julian Reschke <julian.reschke@gmx.de>, Ian Hickson <ian@hixie.ch>, "apps-discuss@ietf.org" <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] Feedback on multipart/form-data
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Sep 2013 15:08:26 -0000

On Thu, Sep 19, 2013 at 10:43 AM, Dave Cridland <dave@cridland.net> wrote:

> Julian Reschke wrote:
>
>> On 2013-09-19 15:29, Dave Cridland wrote:
>>
>>>     Julian Reschke wrote:
>>>
>>>>
>>>>>     I know of RFC 2047 and RFC 2231, as well as unencoded UTF-8 and
>>>>>     unencoded ISO-8859-1 (I think).
>>>>>
>>>>
>>>>     No surprise here
>>>>
>>>
>>>     Yes, but one wonders if the unencoded UTF-8 actually does any harm at
>>>     all in a 8bit/binary-safe protocol like HTTP.
>>>
>>>     If most processors accept this - and I have no idea - it might even
>>> be
>>>     useful to document.
>>>
>>
>> The risk here is that some UAs send ISO-8859-1 (or something based on the
>> locale), and servers parse based on the User-Agent. We have the same
>> problem with the Content-Disposition response header field.
>>
>> It's hard to change these kinds of workarounds in deployed code, and
>> that's why a new mechanism that can't be confused with the old syntax may
>> work better (thus RFC 5987).
>>
>
> Yes, agreed, though UTF-8 is very difficult to accidentally mimic, from
> what I've found.
>
> I wonder if an EAI expert might suggest something here? Or if a top-level
> parameter or header might be useful to indicate UTF-8 header content? I
> can't help but feel it's a simpler construct to adhere to.
>
>
I think it is useful to do whatever we can to standardize
multipart/form-data. But it is going to be an imperfect solution.

Every browser already has to support JSON in practice. JSON is where the
industry is going. JSON already has full compliance with UTF-8 etc.


We should definitely try to clean up multipart/form-data but we should try
to build a long term transition path to JSON.

-- 
Website: http://hallambaker.com/