Re: [core] Suggestions re: how to implement HEAD semantics within COAP?
"Charles Palmer" <charles.palmer@onzo.com> Sat, 07 May 2011 10:26 UTC
Return-Path: <charles.palmer@onzo.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D0056E06D1 for <core@ietfa.amsl.com>; Sat, 7 May 2011 03:26:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.467
X-Spam-Level:
X-Spam-Status: No, score=-3.467 tagged_above=-999 required=5 tests=[AWL=0.131, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IQhteKDAYbtd for <core@ietfa.amsl.com>; Sat, 7 May 2011 03:26:04 -0700 (PDT)
Received: from service38.mimecast.com (service38.mimecast.com [195.130.217.47]) by ietfa.amsl.com (Postfix) with SMTP id 8CD6BE06C8 for <core@ietf.org>; Sat, 7 May 2011 03:26:03 -0700 (PDT)
Received: from onzosbs2k3.ONZO.local (217.138.5.2 [217.138.5.2]) by service38.mimecast.com; Sat, 07 May 2011 11:26:01 +0100
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Date: Sat, 07 May 2011 11:25:58 +0100
Message-ID: <E4DBD8AB11D2E54F89B23D7CD1065D8C01D4D8F8@onzosbs2k3.ONZO.local>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [core] Suggestions re: how to implement HEAD semantics within COAP?
Thread-Index: AcwMiq+P6L/bQIS4SNaAhqylMbMnowAFLfh+
References: <4DC40A9D.3060208@cisco.com><EED8658B-8287-4AD8-993D-FC77425D0D8B@tzi.org><4DC419B2.5080306@cisco.com><C70FDB25-1CCD-4FBE-96D5-939B53DB38E6@tzi.org> <4DC4CA21.2000902@cisco.com>
From: Charles Palmer <charles.palmer@onzo.com>
To: paduffy@cisco.com, Carsten Bormann <cabo@tzi.org>
X-MC-Unique: 111050711260100802
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CC0CA1.27F2AC45"
Cc: core <core@ietf.org>
Subject: Re: [core] Suggestions re: how to implement HEAD semantics within COAP?
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/core>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 07 May 2011 10:26:04 -0000
I guess the Size option from draft-li-core-coap-size-option-00 could be extended such that a CoAP GET request including Size=0 is treated as a request to get the size of the resource representation (but not the resource payload) and so could be translated to and from an HTTP HEAD (and could return Content-Length to a CoAP requester). -----Original Message----- From: core-bounces@ietf.org on behalf of Paul Duffy Sent: Sat 07/05/2011 05:27 To: Carsten Bormann Cc: core Subject: Re: [core] Suggestions re: how to implement HEAD semantics within COAP? On 5/6/2011 12:20 PM, Carsten Bormann wrote: > On May 6, 2011, at 17:54, Paul Duffy wrote: > >> The use case is HTTP HEAD into a COAP network to determine the size of a resource. > HTTP HEAD gives you a content-length only if HTTP GET would have given you a content-length. > So this usage of HTTP HEAD is a bit on thin ice on the HTTP side already. > > Can you explain the use case for "HTTP HEAD into a COAP network to determine the size of a resource"? The example is probably better expressed in the opposite direction. A COAP based element needing to determine the size of a large resource before loading it from an HTTP network. > Why would you ever want to do that? > And does this use case occur often enough to warrant any optimization? > > Gruesse, Carsten > > _______________________________________________ core mailing list core@ietf.org https://www.ietf.org/mailman/listinfo/core -------------------------------- Onzo is a limited company number 06097997 registered in England & Wales. The registered office is 6 Great Newport Street, London, WC2H 7JB, United Kingdom. This email message may contain confidential and/or privileged information, and is intended solely for the addressee(s). If you have received this email in error, please notify Onzo immediately. Unauthorised copying, disclosure or distribution of the material in this email is forbidden. --------------------------------
- [core] Suggestions re: how to implement HEAD sema… Paul Duffy
- Re: [core] Suggestions re: how to implement HEAD … Carsten Bormann
- Re: [core] Suggestions re: how to implement HEAD … Paul Duffy
- Re: [core] Suggestions re: how to implement HEAD … Carsten Bormann
- Re: [core] Suggestions re: how to implement HEAD … Thomas Herbst
- Re: [core] Suggestions re: how to implement HEAD … Carsten Bormann
- Re: [core] Suggestions re: how to implement HEAD … Likepeng
- Re: [core] Suggestions re: how to implement HEAD … Paul Duffy
- Re: [core] Suggestions re: how to implement HEAD … Charles Palmer
- Re: [core] Suggestions re: how to implement HEAD … Likepeng
- Re: [core] Suggestions re: how to implement HEAD … Carsten Bormann
- Re: [core] Suggestions re: how to implement HEAD … Likepeng