Re: [weirds] feedback on draft-designteam-weirds-using-http
Andy Newton <andy@hxr.us> Thu, 17 May 2012 18:54 UTC
Return-Path: <andy@hxr.us>
X-Original-To: weirds@ietfa.amsl.com
Delivered-To: weirds@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AC92421F8752 for <weirds@ietfa.amsl.com>; Thu, 17 May 2012 11:54:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, 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 nSH9NMsgJ0aI for <weirds@ietfa.amsl.com>; Thu, 17 May 2012 11:54:32 -0700 (PDT)
Received: from mail-qa0-f49.google.com (mail-qa0-f49.google.com [209.85.216.49]) by ietfa.amsl.com (Postfix) with ESMTP id 9373F21F871C for <weirds@ietf.org>; Thu, 17 May 2012 11:54:29 -0700 (PDT)
Received: by qabj40 with SMTP id j40so2210284qab.15 for <weirds@ietf.org>; Thu, 17 May 2012 11:54:29 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=BqE8x4xVATNtvEchzDMeSaTUEqv/DqDpKG9+JccRbA4=; b=VbTqCVta93T+BRBq5mnRp8ElmWvRFsqbdC0NeNqgKGoOhVdw7sRF76h1a7n53kJK9J LOr/TaKxqAIFsUEJG3vT1c1IGU5yaF0iHJoM92DI+zCHbmY63zivAQYodomUDLsHip2B N6Fp8tQzeLJtMHQAbG5yKzmWrV4qlM3uFlgvdRQe2YcXan2Pc0zx2hn6w91Uj7vjeThu aFYpmqz/subNM00PBFLQTbsO5d8HttNcv8BmunmusLaV17u/KFAkyjZUKNM0xR4nmRFB iSq44a0kMTZvHYdTQl4NtE28af+7r5noSPOgyvWQRtgO3NeJ2hks2U1ZRbFYOj9+/vfJ 6kmg==
Received: by 10.224.34.9 with SMTP id j9mr18172295qad.14.1337280869115; Thu, 17 May 2012 11:54:29 -0700 (PDT)
Received: from andytop.arin.net (core.arin.net. [192.149.252.11]) by mx.google.com with ESMTPS id gy9sm16003701qab.22.2012.05.17.11.54.26 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 17 May 2012 11:54:27 -0700 (PDT)
Mime-Version: 1.0 (Apple Message framework v1257)
Content-Type: text/plain; charset="us-ascii"
From: Andy Newton <andy@hxr.us>
In-Reply-To: <4FB520B4.1070803@gmx.de>
Date: Thu, 17 May 2012 14:54:25 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <A58EF70A-BBAA-4DA5-A951-C1F16356F741@hxr.us>
References: <4FB26082.3070800@gmx.de> <9B94D739-E037-4539-82E8-0E79BBFEC543@hxr.us> <4FB520B4.1070803@gmx.de>
To: Julian Reschke <julian.reschke@gmx.de>
X-Mailer: Apple Mail (2.1257)
X-Gm-Message-State: ALoCoQmvMfowdyFf3HLqPb0eWLneKSojALDrsVE1aubdFGVMN0OCcwQn6NKxZJRWCcVPCsjLBJ29
Cc: weirds@ietf.org
Subject: Re: [weirds] feedback on draft-designteam-weirds-using-http
X-BeenThere: weirds@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "WHOIS-based Extensible Internet Registration Data Service \(WEIRDS\)" <weirds.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/weirds>, <mailto:weirds-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/weirds>
List-Post: <mailto:weirds@ietf.org>
List-Help: <mailto:weirds-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/weirds>, <mailto:weirds-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 17 May 2012 18:54:33 -0000
On May 17, 2012, at 12:00 PM, Julian Reschke wrote: > Using URI templates sound promising. This keeps coming up, but so far nobody has shown why it is useful. I think what we want out of URI templating is to be shown what utility it adds before placing it in the specifications. >>> b) s/MIME type/media type/ >>> >>> Accept header. Servers SHOULD respond with an appropriate MIME type >>> in the Accept header in accordance with the preference rules for the >>> Accept header in HTTP [RFC2616]. However the use by clients of >>> multiple MIME types in the Accept header is NOT RECOMMENDED. >>> >>> It's not clear to me why you're profiling HTTP here. >> >> Because for this application, clients will probably only know one format. The need to use the complex rules for specifying multiple formats is unnecessary. > > I don't follow. Servers need to process the Accept header field according to RFC 2616. Are you saying they can rely on it being simpler? In which case, this would need to be a "MUST NOT". Uh, yeah. I think I'm trying to have it both ways. It's probably best to simply remove this. >>> that it desires JSON or "application\weirds_blah_v1+json" to express >>> that it desires WEIRDS BLAH version 1 in JSON. The server MUST >>> respond with "application\weirds_blah_v1+json". >>> >>> This seems to invent a new concept of media ranges in content negotiation that didn't exist before. Why is this needed? >> >> For signaling the version of the schema desired. Is there another method you feel is more appropriate? > > The method is probably ok, but the way it was explained was confusing: client specifies it wants "A", but server is allowed to return "B" (and label it as "B"), if it has out-of-band info that the client will understand it, too. Note that here "A" and "B" could be any media type (the label is really opaque). Ok. I'll look into cleaning this up. > >>> 5.2. Redirects >>> >>> If a server wishes to inform a client that the answer to a given >>> query can be found elsewhere, it should return either a 301 or a 303 >>> reponse code and an HTTP URL in the Redirect header. The client is >>> >>> s/reponse/response/ >>> >>> expected to issue a subsequent query using the given URL without any >>> processing of the URL. In other words, the server is to hand back a >>> complete URL and the client should not have to transform the URL to >>> follow it. >>> >>> HTTPbis allows relative URIs here, and so should this protocol. >> >> Why? It is simpler for the clients if the URLs are absolute. > > Do not profile the base protocol unless there is a very very good reason. I now understand what you are saying. >>> ... >>> >>> 7. Use of XML >>> >>> 7.1. Signaling >>> >>> Clients may signal their desire for XML using the "application\xml" >>> mime type or a more application specific XML mime type. >>> >>> 7.2. Naming and Structure >>> >>> Well-formed XML may be programmatically produced using the JSON >>> encodings due to the JSON naming rules outlined in Section 6.2 and >>> the following simple rules: >>> >>> 1. Where a JSON name is given, the corresponding XML element has the >>> same name. >>> >>> 2. Where a JSON value is found, it is the content of the >>> corresponding XML element. >>> >>> That is not true for all JSON values (consider control characters). >> >> Ah yes, the escaping needs to be changed from JSON to XML. > > There's still a set of characters that won't be usable in XML (yes, not even escaped). That would be &, <, and >. So I guess we should mention those are to be escaped as well. Gosh XML is overly complex. Thanks for the input. -andy
- [weirds] feedback on draft-designteam-weirds-usin… Julian Reschke
- Re: [weirds] feedback on draft-designteam-weirds-… Andy Newton
- Re: [weirds] feedback on draft-designteam-weirds-… Julian Reschke
- Re: [weirds] feedback on draft-designteam-weirds-… Arturo Servin
- Re: [weirds] feedback on draft-designteam-weirds-… Julian Reschke
- Re: [weirds] feedback on draft-designteam-weirds-… John Levine
- Re: [weirds] feedback on draft-designteam-weirds-… Julian Reschke
- Re: [weirds] feedback on draft-designteam-weirds-… Arturo Servin
- Re: [weirds] feedback on draft-designteam-weirds-… Andy Newton
- Re: [weirds] feedback on draft-designteam-weirds-… Andy Newton
- Re: [weirds] feedback on draft-designteam-weirds-… Andy Newton
- Re: [weirds] feedback on draft-designteam-weirds-… Hollenbeck, Scott
- Re: [weirds] feedback on draft-designteam-weirds-… Andy Newton
- Re: [weirds] feedback on draft-designteam-weirds-… Murray S. Kucherawy
- Re: [weirds] feedback on draft-designteam-weirds-… Arturo Servin
- Re: [weirds] feedback on draft-designteam-weirds-… Arturo Servin
- Re: [weirds] feedback on draft-designteam-weirds-… Julian Reschke
- Re: [weirds] feedback on draft-designteam-weirds-… Julian Reschke
- Re: [weirds] feedback on draft-designteam-weirds-… Andy Newton
- Re: [weirds] feedback on draft-designteam-weirds-… Julian Reschke
- Re: [weirds] feedback on draft-designteam-weirds-… Andy Newton
- Re: [weirds] feedback on draft-designteam-weirds-… Francisco Obispo
- Re: [weirds] feedback on draft-designteam-weirds-… Julian Reschke
- Re: [weirds] feedback on draft-designteam-weirds-… Julian Reschke
- Re: [weirds] feedback on draft-designteam-weirds-… Francisco Obispo
- Re: [weirds] feedback on draft-designteam-weirds-… SM
- Re: [weirds] feedback on draft-designteam-weirds-… Julian Reschke
- Re: [weirds] feedback on draft-designteam-weirds-… Maarten Wullink
- Re: [weirds] feedback on draft-designteam-weirds-… Andy Newton