Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 46974 invoked from network); 1 Nov 2008 12:40:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2008 12:40:30 -0000 Received: (qmail 13377 invoked by uid 500); 1 Nov 2008 12:40:35 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 13341 invoked by uid 500); 1 Nov 2008 12:40:34 -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 13330 invoked by uid 99); 1 Nov 2008 12:40:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Nov 2008 05:40:34 -0700 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.p.carey@gmail.com designates 209.85.198.247 as permitted sender) Received: from [209.85.198.247] (HELO rv-out-0708.google.com) (209.85.198.247) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Nov 2008 12:39:20 +0000 Received: by rv-out-0708.google.com with SMTP id k29so2001578rvb.0 for ; Sat, 01 Nov 2008 05:39:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=mKQBM0v4mO88xJKmwv/NVXODsE6Amap8kTX7EySB8ww=; b=OR68DESkDBeIyOrDjbLkgfB1VM+TQkZTC2/180bMVvk2XTisrtR8fg7lwIYtiTqkWN 2YG3B9Lh/gjf/STIGnnIXRdgarqEc2L4mkL7LZ7nI7xXkVFJ9OqnQ/GyOdUnc2SqSz8J eyEYrgobfGTsyMqNdN51zYYblXnlDJnqfW3JU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=PC6J3K21rITKTPHKH8j0maVW6MoGVcxWMID8obEH9uzivpgS/jTnsYUC9XkcKVU3VR +cgBBSzD8NkKPHzBdToaNMSGTWW9kTYoKF93tWK0xqdZNOLfBMiP/XFiFaxcbGpvbH3r w75qc5aax6V8DVgx/XzvaCQBuODj4k3iOD7dQ= Received: by 10.142.155.4 with SMTP id c4mr6020045wfe.9.1225543191231; Sat, 01 Nov 2008 05:39:51 -0700 (PDT) Received: by 10.143.2.5 with HTTP; Sat, 1 Nov 2008 05:39:51 -0700 (PDT) Message-ID: <13ae4dd50811010539u5843347fg21d11e41e465ad1a@mail.gmail.com> Date: Sat, 1 Nov 2008 12:39:51 +0000 From: "Paul Carey" To: couchdb-user@incubator.apache.org Subject: Re: Creating views using PUT In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org > I have also tried url-encoding so that the url is > http://localhost:5984/somedatabase/_design%2fmyview, but I get exactly the > same result. Hi Alex It looks like you were just a case change away from the right result - %2F to URL encode a / $ cat bar {"_id":"_design\/Bar","views":{"all":{"map":"function(doc) { emit(null, doc); } "}}} $ curl -H "content-type:application/json" -T bar http://localhost:5984/scratch/_design%2FBar {"ok":true,"id":"_design/Bar","rev":"3978364787"} You'll probably find working with CouchDB a lot more pleasant when using a library that takes care of URL and JSON encoding. Paul