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 5A0EAED1F for ; Thu, 28 Feb 2013 17:20:16 +0000 (UTC) Received: (qmail 30965 invoked by uid 500); 28 Feb 2013 17:20:14 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 30933 invoked by uid 500); 28 Feb 2013 17:20:14 -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 30922 invoked by uid 99); 28 Feb 2013 17:20:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2013 17:20:14 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_FONT_LOW_CONTRAST,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [72.30.238.76] (HELO nm35-vm4.bullet.mail.bf1.yahoo.com) (72.30.238.76) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Feb 2013 17:20:06 +0000 Received: from [98.139.215.142] by nm35.bullet.mail.bf1.yahoo.com with NNFMP; 28 Feb 2013 17:19:45 -0000 Received: from [98.139.211.160] by tm13.bullet.mail.bf1.yahoo.com with NNFMP; 28 Feb 2013 17:19:45 -0000 Received: from [127.0.0.1] by smtp217.mail.bf1.yahoo.com with NNFMP; 28 Feb 2013 17:19:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1362071985; bh=Z8QJ4Kq28QmWVlcyFFtqTDQ/UdMSECMsafucIEJBcX8=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:From:Content-Type:Message-Id:Mime-Version:Subject:Date:References:To:In-Reply-To:X-Mailer; b=v2mNjt23bZ8G+jf8R3MKFA+n/lonBVQD9tIMglxtQjGHNLBJOcAWCPC8llUiYWDpL8Zy6OUeDoEHYncesVZS/cFPDWupHfQSyBusmn0wwgvlTuHcr7jZ5Nn08I5eZx8bk5HjO3JXzr7trArh8z4hk0DLQcMZhRmD/5Oq/q6exRU= X-Yahoo-Newman-Id: 846035.40794.bm@smtp217.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: RLL1bu8VM1myfst1q7HuiGDimDcHvQJ4p50T7q2ZDkt1wNK sLliWd6.85xUi83QvWR1nkueWmzIw62rbAOWDEJWXI6rjV_8yDrJZFF_SFT7 TqJJl0QLjdDWeuVPAohHYM4pvZ5iUvGLiV4S39j8NJ9TecyDelEcpGs0sWGK gpGWCj5L5vi_2xYsEB.2.oKMvNLaVqZInsAe5_T3QzkN3kK3uamn70f8hk.e efXqclom72jRsVHgHjQc9GRcG3Bl7mcDR2GuGHqWN7l5JRtOfEvJbaLDuVij Vi5qd2NYmFZ7me5Hu3I_p.mkB.EZ4CrmIuw4TDCuTK2IsmynTvGLiDI16_eb BcuYZtfOlNQPI063IkDCxUqmf6YDH2_ETXDbq4pyD3XbMf1thY7Z.GeIEotw 6W.wKNCNTL8E3ymO2U_HLi6IJQ1qvy_moDuBo383QKxuLeEWEhOnk1yLWvN3 ZjI4Gp54vckzGARqrLlStTOR.Is1.VjMx16L15w6.cx8bntSKCouhTujhZMI JWD_uYoqwnBjDL5MJcJ2Y3bDZef8yIm9WwvQ5uNVimp2SWxz5iHRP782R3kt u4b3uep5ft9gCjEz9BWzyY9I3p3zGyY0FTbkP.IJQzUCqK_1f2ieQvHZGhm5 OZ64PMWPB1HG11slGCRyUWqFaVdoVmbOLTepXowdSjyQsXoYtaurXWwIdqwf NZKlbDKZ.oh9bpt44aWMWTl8sx434cS7qgQ-- X-Yahoo-SMTP: b9FO.o6swBDjz1Oj2MrhmZVB01c- Received: from [10.0.1.4] (iomatix@71.197.38.211 with plain) by smtp217.mail.bf1.yahoo.com with SMTP; 28 Feb 2013 09:19:45 -0800 PST From: Jeff Charette Content-Type: multipart/alternative; boundary="Apple-Mail=_19D41B1D-978A-4F92-874C-AE76642F38CB" Message-Id: Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: http equivalent of curl example Date: Thu, 28 Feb 2013 12:19:44 -0500 References: To: user@couchdb.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_19D41B1D-978A-4F92-874C-AE76642F38CB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Also note that doing a request from the url makes it a get not a post. Try using jquery or you can use=20 http://daleharvey.github.com/jquery.couch.js-docs/symbols/index.html located at http://localhost:5984/_utils/script/jquery.couch.js Jeff Charette | Principal=20 We Are Charette web / identity / packaging m 415.298.2707 w wearecharette.com e jeffrey@wearecharette.com On Feb 28, 2013, at 11:45 AM, Robert Newson wrote: > you can do ?keys=3D["foo","bar"] in newer couchdb version, obviously = up > the practical url limit of around 2k (or 4k now?). >=20 > B. >=20 > On 28 February 2013 16:38, Tim Tisdall wrote: >> In that example the variables are being passed in as POST values. = You're >> adding them to the URL which is making them GET variables. Do you = have >> code examples that you're trying to use in Javascript? Are you using >> jQuery? >>=20 >>=20 >> On Thu, Feb 28, 2013 at 11:32 AM, Alexander Gabriel = wrote: >>=20 >>> Hi >>>=20 >>> The couchdb docs are full of examples using curl. >>>=20 >>> My problem is, I'm a noob and a windows user. And I am programming = using >>> Javascript, not Curl (I suspect most of you are?). >>> Well, I have spent quite a while sitting in front of all these = examples >>> scratching my head and wondering how to write them in http. I'd = better just >>> ask an example: >>>=20 >>> What would this here: curl -d '{"keys":["bar","baz"]}' -X POST >>> http://127.0.0.1:5984/foo/_all_docs?include_docs=3Dtrue >>>=20 >>> be in http? >>>=20 >>> I have tried this: >>> = http://127.0.0.1:5984/foo/_all_docs?include_docs=3Dtrue&id=3D["bar","baz"]= >>>=20 >>> In case this is correct then maybe it did not work for me because my = array >>> contains hundreds, sometimes thousands of id's which is why I am = looking >>> for a way to fetch them all in one request. >>>=20 >>> What would the best way be to fetch hundreds of docs of which you = know the >>> id and can't use a view? (other than opening every on single) >>>=20 >>> My use-case: Importing big lists into a couch. The data in the = uploaded >>> .csv-files comes with id's and has to be inserted into the = corresponding >>> docs. >>>=20 >>> Cheers >>> Alex >>>=20 --Apple-Mail=_19D41B1D-978A-4F92-874C-AE76642F38CB--