Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 15614 invoked from network); 2 Mar 2011 23:40:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Mar 2011 23:40:55 -0000 Received: (qmail 2818 invoked by uid 500); 2 Mar 2011 23:40:53 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 2789 invoked by uid 500); 2 Mar 2011 23:40:53 -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 2780 invoked by uid 99); 2 Mar 2011 23:40:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 23:40:52 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_FROM,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vx0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 23:40:49 +0000 Received: by vxc38 with SMTP id 38so638926vxc.11 for ; Wed, 02 Mar 2011 15:40:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=47n6HbumQmIacWLEUbcWjyZ5EfBbI+lO2XrLsIEb3Nc=; b=WsS30GqZEsjvhtVctEIgimk7+dRcQauAQoG3vDxMcGZLhCoulJlSlQ8ZX5651ibgIZ GBJEmXHLJXaikWVPQScX5jNNfQQhb5XO4QudEWrBnePl3E4dQeSDhvOdTtKV94yvld0+ S7tl3HAfbU1HwBWtMvP/avfAmYJLIWBTehHHQ= 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 :cc:content-type; b=Vvtby1YUAS+twXkr8toFNWr12Cdy8881nP67fnoW2Elnek18xaEK5iYZ+Bqy3CqmLX h5CsGsB7u7HhbanXVRaVXUculsA7sn+0IFGQwu6xQHg5HvezuV8nEPvgwaVfJr6xUPkv g2oTKyzH0jWtmeCHuZc3c57FUiMtOHPD0DVsk= Received: by 10.52.91.230 with SMTP id ch6mr772512vdb.32.1299109228103; Wed, 02 Mar 2011 15:40:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.160.132 with HTTP; Wed, 2 Mar 2011 15:39:48 -0800 (PST) In-Reply-To: <4D6ED46D.8070008@terminal-phantoms.com> References: <4D6ED46D.8070008@terminal-phantoms.com> From: Paul Davis Date: Wed, 2 Mar 2011 18:39:48 -0500 Message-ID: Subject: Re: Unable to use the HTTP proxy handler in the new externals API To: user@couchdb.apache.org Cc: Lou Gonzalez Content-Type: text/plain; charset=ISO-8859-1 On Wed, Mar 2, 2011 at 6:36 PM, Lou Gonzalez wrote: > Hi all, > > I'm on version 1.0.2 and attempting to use the new HTTP proxy handler in the > externals API using the example linked to from the CouchDB wiki: > https://github.com/apache/couchdb/commit/11469d902b15145d361f9f7ec66a09ac3d04757c > > I have this in my local.ini configuration: > > [httpd_global_handlers] > _google = {couch_httpd_proxy, handle_proxy_req, <<"http://www.google.com">>} > > I'm trying to reach this with curl: > > curl http://127.0.0.1:5984/_google/search?q=plankton > > Doing so returns '{"error":"unknown_error","reason":"undef"}'. See the full > log here: https://gist.github.com/851996 > > Is there extra configuration I need to add to my local.ini? What am I > missing? > > Cheers, > > Lou > That feature doesn't exist in 1.0.2. It'll be in 1.1.0 when that's released.