Re: [OAUTH-WG] HTTP/1.0 and JSON
Eran Hammer-Lahav <eran@hueniverse.com> Wed, 15 June 2011 15:32 UTC
Return-Path: <eran@hueniverse.com>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6D64511E8158 for <oauth@ietfa.amsl.com>; Wed, 15 Jun 2011 08:32:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.499
X-Spam-Level:
X-Spam-Status: No, score=-2.499 tagged_above=-999 required=5 tests=[AWL=0.100, BAYES_00=-2.599]
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 qRDSY2Pi4gXa for <oauth@ietfa.amsl.com>; Wed, 15 Jun 2011 08:32:09 -0700 (PDT)
Received: from p3plex1out02.prod.phx3.secureserver.net (p3plex1out02.prod.phx3.secureserver.net [72.167.180.18]) by ietfa.amsl.com (Postfix) with SMTP id 83A8511E8137 for <oauth@ietf.org>; Wed, 15 Jun 2011 08:32:09 -0700 (PDT)
Received: (qmail 27868 invoked from network); 15 Jun 2011 15:32:07 -0000
Received: from unknown (HELO smtp.ex1.secureserver.net) (72.167.180.21) by p3plex1out02.prod.phx3.secureserver.net with SMTP; 15 Jun 2011 15:32:02 -0000
Received: from P3PW5EX1MB01.EX1.SECURESERVER.NET ([10.6.135.19]) by P3PW5EX1HT003.EX1.SECURESERVER.NET ([72.167.180.21]) with mapi; Wed, 15 Jun 2011 08:31:59 -0700
From: Eran Hammer-Lahav <eran@hueniverse.com>
To: Tim Brody <tdb2@ecs.soton.ac.uk>, "oauth@ietf.org" <oauth@ietf.org>
Date: Wed, 15 Jun 2011 08:31:39 -0700
Thread-Topic: [OAUTH-WG] HTTP/1.0 and JSON
Thread-Index: AcwrWaKurOtWm9RvT36fBNvWevstOwAFzpoQ
Message-ID: <90C41DD21FB7C64BB94121FBBC2E7234475E986A8B@P3PW5EX1MB01.EX1.SECURESERVER.NET>
References: <1308141703.2268.211.camel@chassis.ecs.soton.ac.uk> <EMEW3|2d472212bace21e440b5fb833192f747n5EDfn04tdb2|ecs.soton.ac.uk|1308141703.2268.211.camel@chassis.ecs.soton.ac.uk>
In-Reply-To: <EMEW3|2d472212bace21e440b5fb833192f747n5EDfn04tdb2|ecs.soton.ac.uk|1308141703.2268.211.camel@chassis.ecs.soton.ac.uk>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: Re: [OAUTH-WG] HTTP/1.0 and JSON
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/oauth>, <mailto:oauth-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/oauth>
List-Post: <mailto:oauth@ietf.org>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Jun 2011 15:32:10 -0000
> -----Original Message----- > From: oauth-bounces@ietf.org [mailto:oauth-bounces@ietf.org] On Behalf > Of Tim Brody > Sent: Wednesday, June 15, 2011 5:42 AM > To: oauth@ietf.org > Subject: [OAUTH-WG] HTTP/1.0 and JSON > > Hi All, > > I'm the author of this Perl library for signing OAuth 1.0 requests: > http://search.cpan.org/~timbrody/LWP-Authen-OAuth-1.01/ > > I've been asked about OAuth 2.0 so have scanned through the spec and > joined this list :-) > > > The MAC-signing draft section 1.2 refers to "Host:" but I have an HTTP library > that can talk 1.0 or 1.1. I make an HTTP request with URI + form parameters + > extra headers - I don't know if the "Host:" header will exist. So, can you just > refer to the "hostname" and "port"? (Whether they are in the URI or a Host: > header seems orthogonal to OAuth anyway?) The MAC draft works on HTTP/1.1 requests. Using it with 1.0 is undefined. > > Why do you POST application/x-www-form-urlencoded but get > application/json? There is a long thread somewhere... But it's the compromise we reached. > I couldn't find a conclusion to the May 2010 discussions about using x-www- > form-urlencoded vs. json nor a rationale in the spec for using JSON. Why do I > need to add a JSON lexer/parser to my library just to get key-value pairs that > can be represented by form-urlencoded? Every modern platform has a JSON parser. EHL > > All the best, > Tim. > > _______________________________________________ > OAuth mailing list > OAuth@ietf.org > https://www.ietf.org/mailman/listinfo/oauth
- [OAUTH-WG] HTTP/1.0 and JSON Tim Brody
- Re: [OAUTH-WG] HTTP/1.0 and JSON Eran Hammer-Lahav
- Re: [OAUTH-WG] HTTP/1.0 and JSON Justin Richer
- Re: [OAUTH-WG] HTTP/1.0 and JSON Tim Brody
- Re: [OAUTH-WG] HTTP/1.0 and JSON Justin Richer