Re: Resumable Uploads

Kevin Swiber <kswiber@gmail.com> Thu, 18 April 2013 21:58 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CDEA121F8C98 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 18 Apr 2013 14:58:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 BxcKzhGX8fJf for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 18 Apr 2013 14:58:40 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id D567921F8B16 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 18 Apr 2013 14:58:40 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1USwpn-0007f4-Up for ietf-http-wg-dist@listhub.w3.org; Thu, 18 Apr 2013 21:57:39 +0000
Resent-Date: Thu, 18 Apr 2013 21:57:39 +0000
Resent-Message-Id: <E1USwpn-0007f4-Up@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <kswiber@gmail.com>) id 1USwpk-0007eO-Lx for ietf-http-wg@listhub.w3.org; Thu, 18 Apr 2013 21:57:36 +0000
Received: from mail-ie0-f169.google.com ([209.85.223.169]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <kswiber@gmail.com>) id 1USwpj-0006pw-SA; Thu, 18 Apr 2013 21:57:36 +0000
Received: by mail-ie0-f169.google.com with SMTP id ar20so4008480iec.14 for <multiple recipients>; Thu, 18 Apr 2013 14:57:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer; bh=NKF3tQJyNwvDfP0Mkz2wZCeT9Z9tcgBsxJs/JNM2J5c=; b=ikWVVbe+uP44fFrc7cftz9w2IPdQdEbczOR0CLKLecAX1I3zyshjq+7fPeV5ttL2iL ezcn9tzyloFRoGMy5oJg70UCEd8m9hHIQzT99853kzcnRBh3+pgGOIlbEQKqcUvL2BxN 5IaP7NNxh2pGxc7+CleaK1KpsDilEqwN0Ekg8ImcqvIbNVHNUJb8qf5yjwIDFahOHqIv hXBYufdFaz6CciJvb9FACbvWqRtNz/bOBOkoxgoUJ5xvm2jJ6HS8YNZLJkoWtrZOJYYk ChUMTFLz85YU375cuHXnraOIFqBLSwFNLbP+QYKNE6W0MIkgPX0nArTiYAsKvJQUqqPs vklA==
X-Received: by 10.50.219.168 with SMTP id pp8mr13963790igc.57.1366322229748; Thu, 18 Apr 2013 14:57:09 -0700 (PDT)
Received: from [10.0.0.6] (adsl-99-150-149-43.dsl.sfldmi.sbcglobal.net. [99.150.149.43]) by mx.google.com with ESMTPS id ip2sm27333239igc.5.2013.04.18.14.57.07 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Apr 2013 14:57:07 -0700 (PDT)
Content-Type: text/plain; charset="iso-8859-1"
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
From: Kevin Swiber <kswiber@gmail.com>
In-Reply-To: <alpine.DEB.2.00.1304182006001.21288@tvnag.unkk.fr>
Date: Thu, 18 Apr 2013 17:57:04 -0400
Cc: Felix Geisendörfer <felix@transloadit.com>, HTTP Working Group <ietf-http-wg@w3.org>, Yves Lafon <ylafon@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <29DE6A70-E3B9-4DCE-8C7E-506F6A0ADC92@gmail.com>
References: <CADZbJ9dYFGyrceh03M3B0KdKto7160Dis_geh9um0BhVe1re0g@mail.gmail.com> <alpine.DEB.2.00.1304182006001.21288@tvnag.unkk.fr>
To: Daniel Stenberg <daniel@haxx.se>
X-Mailer: Apple Mail (2.1503)
Received-SPF: pass client-ip=209.85.223.169; envelope-from=kswiber@gmail.com; helo=mail-ie0-f169.google.com
X-W3C-Hub-Spam-Status: No, score=-0.8
X-W3C-Hub-Spam-Report: DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1USwpj-0006pw-SA 5d0ff46dab1a601535139002a62c3a13
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Resumable Uploads
Archived-At: <http://www.w3.org/mid/29DE6A70-E3B9-4DCE-8C7E-506F6A0ADC92@gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17347
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Apr 18, 2013, at 5:18 PM, Daniel Stenberg <daniel@haxx.se> wrote:

> On Thu, 18 Apr 2013, Felix Geisendörfer wrote:
> 
>> The first draft for this can be seen here [1]. I'm new to protocol authorship, so please forgive any ignorance you may see in my work. This is no attempt at competing with existing standards, I merely want to identify the relevant subsets of http and make them easy for people to implement.
> 
> My initial view on this:
> 
> "Resume" would be better replaced with "sending a part of a remote resource to get applied on the remote side", and in your most common case that part of data would modify the end of the remote resource (by adding data to it).
> 
> Said like that, isn't that what PATCH is?


IIRC, PATCH makes no special consideration for byte ranges.  RFC 5789 defines the request body as a "patch document."  Before minting a new media type to support byte-range patch documents, it looks like the authors and interested members of the community are trying to fit this into existing HTTP functionality via byte-range headers and range-related status codes.  

A couple of questions:

1. In the case of a resource being in a known-partial state, what response should be sent when a GET request is received and the request has no Range header?
3. What potential HTTP-compatibility issues do you foresee with such a solution?

While an "application/octet-patch" media type or something like that might be a necessity, I think there's value in fleshing out the other HTTP bits at this time.


Thanks,

-- 
Kevin Swiber
@kevinswiber
https://github.com/kevinswiber