Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 52372 invoked from network); 23 Apr 2009 15:38:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Apr 2009 15:38:43 -0000 Received: (qmail 56257 invoked by uid 500); 23 Apr 2009 15:38:42 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 56157 invoked by uid 500); 23 Apr 2009 15:38:41 -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 56147 invoked by uid 99); 23 Apr 2009 15:38:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2009 15:38:41 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.44.30] (HELO yx-out-2324.google.com) (74.125.44.30) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2009 15:38:35 +0000 Received: by yx-out-2324.google.com with SMTP id 8so329730yxm.5 for ; Thu, 23 Apr 2009 08:38:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.187.19 with SMTP id k19mr388861wff.271.1240501092077; Thu, 23 Apr 2009 08:38:12 -0700 (PDT) Date: Thu, 23 Apr 2009 08:38:12 -0700 Message-ID: <1d3db2990904230838r34a4c060t5ae305e67145a285@mail.gmail.com> Subject: how to do http request within server-side _show or _view functions? From: Samuel Wan To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Is there a way to do an http request within the server-side _show or _view functions, or is the JS context limited to what's defined by Spidermonkey and main.js? My understanding is that Spidermonkey doesn't provide an xmlhttprequest object. Also, does CouchDB ship with an interactive javascript shell, or do you have to build and install your own? I found the couchjs executable, but it only interprets javascript files. -Sam