Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 82666 invoked from network); 18 Sep 2008 15:33:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Sep 2008 15:33:52 -0000 Received: (qmail 92759 invoked by uid 500); 18 Sep 2008 15:33:47 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 92737 invoked by uid 500); 18 Sep 2008 15:33:47 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 92726 invoked by uid 99); 18 Sep 2008 15:33:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Sep 2008 08:33:47 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul@rushedsunlight.com designates 209.85.217.19 as permitted sender) Received: from [209.85.217.19] (HELO mail-gx0-f19.google.com) (209.85.217.19) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Sep 2008 15:32:49 +0000 Received: by gxk12 with SMTP id 12so22970057gxk.12 for ; Thu, 18 Sep 2008 08:32:21 -0700 (PDT) Received: by 10.142.165.14 with SMTP id n14mr1441195wfe.335.1221751940650; Thu, 18 Sep 2008 08:32:20 -0700 (PDT) Received: by 10.142.204.13 with HTTP; Thu, 18 Sep 2008 08:32:20 -0700 (PDT) Message-ID: <78c6a6cc0809180832j5aef5209w6dd0ef2db04dd466@mail.gmail.com> Date: Thu, 18 Sep 2008 16:32:20 +0100 From: "Paul Campbell" To: couchdb-user@incubator.apache.org Subject: Re: startkey and quotes In-Reply-To: <928bdd8e0809180829j790cb713i5b04c0be862af3ef@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <928bdd8e0809180829j790cb713i5b04c0be862af3ef@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Will, The quotes are because the key has to be valid JSON ... and in JSON, a string has to be in quotes! Paul On Thu, Sep 18, 2008 at 4:29 PM, william kinney wrote: > Hi (again), > > It seems that the startkey query parameter requires quotes around the value. > However, my lovely Apache java HttpClient library doesn't like that, and > throws a org.apache.commons.httpclient.URIException: Invalid query. > Has anyone had any experience with this? I'd like to avoid having to extend > or hack http client to get around this. > > On a side note, I've never seen quotes being specified/used in query > parameters before. I couldn't find any mention of it in the w3c spec. I'm > sure of course it is intended functionality. Bu t does anyone know why? > > Thanks, > Will >