Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 83003 invoked from network); 25 Apr 2008 10:58:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Apr 2008 10:58:13 -0000 Received: (qmail 98908 invoked by uid 500); 25 Apr 2008 10:58:14 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 98873 invoked by uid 500); 25 Apr 2008 10:58:14 -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 98862 invoked by uid 99); 25 Apr 2008 10:58:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Apr 2008 03:58:14 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [212.41.228.50] (HELO mail.inqnet.at) (212.41.228.50) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Apr 2008 10:57:22 +0000 Message-ID: <4811B934.3070609@iworks.at> Date: Fri, 25 Apr 2008 12:57:56 +0200 From: Michael Wallner User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: couchdb-user@incubator.apache.org Subject: MochiWeb and /db/_design Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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 ^^^^^^^^^^^^^^^