Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 74438 invoked from network); 12 Oct 2010 19:44:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Oct 2010 19:44:05 -0000 Received: (qmail 65415 invoked by uid 500); 12 Oct 2010 19:44:04 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 65357 invoked by uid 500); 12 Oct 2010 19:44:04 -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 65349 invoked by uid 99); 12 Oct 2010 19:44:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Oct 2010 19:44:04 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Oct 2010 19:43:56 +0000 Received: by iwn40 with SMTP id 40so7747919iwn.11 for ; Tue, 12 Oct 2010 12:43:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=Xc8OTommAaDDnVsVXMJUiPeIH9oucNi6D1RDUJG5stc=; b=tgJD2vFtsGJIaNcVmh2MaSRcFKoMB5tWBb66se+Ht26et5kb/4fp2wQTQxQUSWoiQ8 U0VXjWK1OKPRS1T+pr1q66K8pVNjwvd26cLL9rYW1Xhast5+nuU1QRS7PzwzozCi0SuS w8f1Lbz4pWvIORS5odVRZIy9WeHnhKcIryexU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=oWb8B9fqlvScaRJTPvBc9p+H5ptHVoVL7C/aYyJ8IxnFDHPAyynWP/x+z7F6AJSrGC zptyI83IefbkMYwxjTd4PAxWBBEONxDrsGnFlVtl1Dp08E4+qPyDINP72m6fj0gYBeVU sXudEPEstJqEvZARkVybByvVe7yuOX8IoBE/c= Received: by 10.231.15.138 with SMTP id k10mr6262907iba.17.1286912615470; Tue, 12 Oct 2010 12:43:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.30.194 with HTTP; Tue, 12 Oct 2010 12:42:54 -0700 (PDT) In-Reply-To: References: From: Paul Davis Date: Tue, 12 Oct 2010 15:42:54 -0400 Message-ID: Subject: Re: JSONP To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org What version are you using? jsonp has to be turned on in the .ini on recent releases. On Tue, Oct 12, 2010 at 3:33 PM, Ido Ran wrote: > Hi, > > I'm trying to access CouchDB using JSONP. > I'm using curl to see if I get the right response but I never get the > callback around there data, only the data itself just like a regular call. > > I've try it on single doc and a view and it does not work for me. > I've notice this bug fix > https://issues.apache.org/jira/browse/COUCHDB-343which means it > CouchDB should support it. > > SingleDoc: curl http://localhost:5984/todos/task-1?callback=blah > > {"total_rows":1,"offset":0,"rows":[ > {"id":"task-1","key":"task-1","value":{"_id":"task-1","_rev":"1-51d5d67d13db6285a551634e805a78e1","description":"hello","isDone":false,"_deleted_conflicts":["2-fecb3acf61cc5c83cbc24c332b041a89"]}} > ]} > > > View: curl > http://localhost:5984/todos/_design/app/_view/allTasks?callback=blah > > {"_id":"task-1","_rev":"1-51d5d67d13db6285a551634e805a78e1","description":"hello","isDone":false} > IdoMac:~ idoran$ curl http://localhost:5984/todos/task-1?callback=blah > {"_id":"task-1","_rev":"1-51d5d67d13db6285a551634e805a78e1","description":"hello","isDone":false} > > > What am I doing wrong? > > Thank you, > Ido >