Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 45552 invoked from network); 25 Apr 2008 13:38:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Apr 2008 13:38:29 -0000 Received: (qmail 22834 invoked by uid 500); 25 Apr 2008 13:38:30 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 22814 invoked by uid 500); 25 Apr 2008 13:38:30 -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 22803 invoked by uid 99); 25 Apr 2008 13:38:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Apr 2008 06:38:30 -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 guby.mail@gmail.com designates 74.125.46.158 as permitted sender) Received: from [74.125.46.158] (HELO yw-out-1718.google.com) (74.125.46.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Apr 2008 13:37:45 +0000 Received: by yw-out-1718.google.com with SMTP id 4so1667130ywq.0 for ; Fri, 25 Apr 2008 06:37:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=10feuG/JpTBzzfmH1cF0EqSYn3ixFI941QLXMFPoHt0=; b=E2Xntll12UcI3tjC5sdREPoGXBEPjuL5ecfHABfpnkZV9eZ8KoJYWSp+F8zndc3slK/AWGRrr8/7/lOcZcjx9peqTq2wynJJIPYcpN9fEm3A8Op3l9E6U8YzUyjBa+ppIEpEIYhzB8cmoH6z5eMA5d0lr36XAV5Q3SCOkPM30kw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=Ygn7LvuDAAiubz4oZpyAbpFtsSdQDAzC4LuETpnmQqGUtJCXDydvpkz97v+9JW4ex4Ufe57o97jjrMZZG/v8mbiafswndl87Yttob8e5Uyj3xtkLhRf/OtHbJwohswF7XHF1QjgCu1Yi2iW6x8mMuLCqCk7owCkwdtPWrCj3IOg= Received: by 10.150.217.18 with SMTP id p18mr546107ybg.67.1209130678085; Fri, 25 Apr 2008 06:37:58 -0700 (PDT) Received: from ?192.168.1.100? ( [200.89.150.124]) by mx.google.com with ESMTPS id g3sm3771972wra.2.2008.04.25.06.37.56 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 25 Apr 2008 06:37:57 -0700 (PDT) Message-Id: <4085167E-CDF3-4920-B692-98474BAF359E@gmail.com> From: Guby To: couchdb-user@incubator.apache.org In-Reply-To: <4811B934.3070609@iworks.at> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: MochiWeb and /db/_design Date: Fri, 25 Apr 2008 10:36:57 -0300 References: <4811B934.3070609@iworks.at> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org Hi Michael Not sure if this is the case here, but I have found out, that on the trunk, when creating a view, I have to replace the forward slashes with %2F: PUT /DATABASE_NAME/_design%2Fview Not needed when getting the contents of a view though: GET /DATABASE_NAME/_view/view That works for me anyway. Best regards Sebastian On Apr 25, 2008, at 7:57 AM, Michael Wallner wrote: > Hi, > > either I'm doing something awfully wrong, or Mochiweb cannot handle > PUT > at design documents (for views) yet. I'm currently testing trunk > and I > know it worked that way with inets. > > HEAD /mbox/_design/view HTTP/1.1 > User-Agent: PECL::HTTP/1.6.1-dev (PHP/5.3.0-dev) > Host: localhost:5984 > Accept: */* > HTTP/1.1 404 Object Not Found > Server: MochiWeb/1.0 (Any of you quaids got a smint?) > Date: Fri, 25 Apr 2008 10:53:49 GMT > Content-Type: text/plain;charset=utf-8 > Content-Length: 0 > > PUT /mbox/_design/view HTTP/1.1 > User-Agent: PECL::HTTP/1.6.1-dev (PHP/5.3.0-dev) > Host: localhost:5984 > Accept: */* > Content-Type: text/json > Content-Length: 136 > > {"language":"text\/javascript","views":{"default":"function (doc) { > map(null, doc); }","from":"function (doc) { map(doc.from, doc); }"}} > HTTP/1.1 405 Method Not Allowed > Server: MochiWeb/1.0 (Any of you quaids got a smint?) > Date: Fri, 25 Apr 2008 10:53:49 GMT > Content-Length: 0 > Allow: GET,HEAD > > ^^^^^^^^^^^^^^^