incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lou Gonzalez <...@terminal-phantoms.com>
Subject Unable to use the HTTP proxy handler in the new externals API
Date Wed, 02 Mar 2011 23:36:13 GMT
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

Mime
View raw message