Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F2AE7C7E0 for ; Sat, 19 May 2012 21:54:22 +0000 (UTC) Received: (qmail 93820 invoked by uid 500); 19 May 2012 21:54:21 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 93782 invoked by uid 500); 19 May 2012 21:54:21 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 93774 invoked by uid 99); 19 May 2012 21:54:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 May 2012 21:54:21 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chris.hankey@transamerica.com designates 65.55.88.14 as permitted sender) Received: from [65.55.88.14] (HELO tx2outboundpool.messaging.microsoft.com) (65.55.88.14) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 May 2012 21:54:11 +0000 Received: from mail66-tx2-R.bigfish.com (10.9.14.253) by TX2EHSOBE004.bigfish.com (10.9.40.24) with Microsoft SMTP Server id 14.1.225.23; Sat, 19 May 2012 21:53:39 +0000 Received: from mail66-tx2 (localhost [127.0.0.1]) by mail66-tx2-R.bigfish.com (Postfix) with ESMTP id 53BAF4E0B16 for ; Sat, 19 May 2012 21:53:39 +0000 (UTC) X-SpamScore: 0 X-BigFish: VPS0(zzzz1202hzzz2fh2a8h668h839h944hd25hf0ah) X-Forefront-Antispam-Report: CIP:162.123.17.224;KIP:(null);UIP:(null);IPV:NLI;H:aegonusa.com;RD:email3.aegonusa.com;EFVD:NLI Received-SPF: pass (mail66-tx2: domain of transamerica.com designates 162.123.17.224 as permitted sender) client-ip=162.123.17.224; envelope-from=chris.hankey@transamerica.com; helo=aegonusa.com ;aegonusa.com ; Received: from mail66-tx2 (localhost.localdomain [127.0.0.1]) by mail66-tx2 (MessageSwitch) id 1337464417302704_23783; Sat, 19 May 2012 21:53:37 +0000 (UTC) Received: from TX2EHSMHS037.bigfish.com (unknown [10.9.14.238]) by mail66-tx2.bigfish.com (Postfix) with ESMTP id 3CBABC009F for ; Sat, 19 May 2012 21:53:37 +0000 (UTC) Received: from aegonusa.com (162.123.17.224) by TX2EHSMHS037.bigfish.com (10.9.99.137) with Microsoft SMTP Server (TLS) id 14.1.225.23; Sat, 19 May 2012 21:53:36 +0000 Received: from ([162.123.17.230]) by crdcdmzim05.aegonusa.com with ESMTP with TLS id 21NVRH1.135752740; Sat, 19 May 2012 16:53:41 -0500 Received: from crexzix03.inet.nogea.local (ZixVPM [127.0.0.1]) by Outbound.aegonusa.com (Proprietary) with ESMTP id 76663E38398 for ; Sat, 19 May 2012 16:57:52 -0500 (CDT) Received: from CREXHTMAIL02.us.aegon.com (autodiscover.aegonusa.com [162.123.194.95]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by crexzix03.inet.nogea.local (Proprietary) with ESMTP id DE555E38384 for ; Sat, 19 May 2012 16:57:51 -0500 (CDT) Received: from CREXHTMAIL03.us.aegon.com ([169.254.3.122]) by CREXHTMAIL02.us.aegon.com ([169.254.2.104]) with mapi id 14.01.0323.003; Sat, 19 May 2012 16:53:40 -0500 From: "Hankey, Chris" To: "user@couchdb.apache.org" Subject: Call to View returns 405. It's using OPTIONS not GET Thread-Topic: Call to View returns 405. It's using OPTIONS not GET Thread-Index: AQHNNgnZKgquiatR0EuobIruJpzaQQ== Date: Sat, 19 May 2012 21:53:40 +0000 Message-ID: <6BA11CBD97F4DC469B8CB603C5B990FA237EA17C@CREXHTMAIL03.us.aegon.com> References: <4FB69C07.7070705@cedarsoft.com> <4FB6B7BC.9080403@cedarsoft.com> <4FB7F7D7.2040203@cedarsoft.com> In-Reply-To: <4FB7F7D7.2040203@cedarsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-puzzleid: {50651CDE-20E9-4F52-B19C-24847BB638B1} x-cr-hashedpuzzle: ALH0 AL1C Agmf An4I BEik CaX0 Ctzx CwKA DseX HGmX HP6F HQRZ IOY6 IY3n I7Ww J5jq;1;dQBzAGUAcgBAAGMAbwB1AGMAaABkAGIALgBhAHAAYQBjAGgAZQAuAG8AcgBnAA==;Sosha1_v1;7;{50651CDE-20E9-4F52-B19C-24847BB638B1};YwBoAHIAaQBzAC4AaABhAG4AawBlAHkAQAB0AHIAYQBuAHMAYQBtAGUAcgBpAGMAYQAuAGMAbwBtAA==;Sat, 19 May 2012 21:53:37 GMT;QwBhAGwAbAAgAHQAbwAgAFYAaQBlAHcAIAByAGUAdAB1AHIAbgBzACAANAAwADUALgAgACAASQB0ACcAcwAgAHUAcwBpAG4AZwAgAE8AUABUAEkATwBOAFMAIABuAG8AdAAgAEcARQBUAA== x-originating-ip: [162.123.56.60] x-exclaimer-md-config: 7562670a-beab-4c6e-8ed2-ab3b5287c042 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: transamerica.com X-Virus-Checked: Checked by ClamAV on apache.org I'm trying to call a view using the CouchDB Javascript API. The $db.view c= all is failing with a "405 Method Not Allowed" error. $db.view is generati= ng the correct URL, but the call appears to be failing because the view fun= ction is using HTTP OPTIONS method ( or maybe JQuery). If I change the HTT= P method to GET & manually send the HTTP request, then it works fine. I ne= ed $db.view to generate a GET. Any thoughts? Thanks Chris ----------- Sample Code ----------- $.couch.urlPrefix =3D"http://test:5984" $db =3D $.couch.db("forms"); function GetFormList() { =20 $("div#forms").empty(); =20 $db.view("formviews/formlist", { =20 success: function(data) { =20 for (i in data.rows) { =20 id =3D data.rows[i].id; =20 html =3D '
' + =20 '' + id + ' ' + =20 'edit '+ =20 'delete '+ =20 '
'; =20 $("div#forms").append(html); =20 } =20 }}); =20 } =20