couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aurélien Bénel <aurelien.be...@utt.fr>
Subject Re: Rewriting a parameterized URL
Date Sat, 05 Jun 2010 08:14:30 GMT
> could you paste the headers received by couchdb ?

Sure. Here they are:

Headers: [{'Accept',"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"},
          {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.7"},
          {'Accept-Encoding',"gzip,deflate"},
          {'Connection',"keep-alive"},
          {'Host',"127.0.0.1:5984"},
          {'Keep-Alive',"115"},
          {'User-Agent',"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; rv:1.9.2.3) Gecko/20100401
Firefox/3.6.3"}]



Regards,

Aurélien


> However in order to implement the given specification, I would need something like this
rule:
> [
>  {
>   "from": "/item/?corpus=:corpus",
>   "to": "_list/mapping/kwic",
>   "query": {
>     "startkey": [":corpus"],
>     "endkey": [":corpus",{}]
>   }
>  }
> ]
> 
> I get:
> 1> [debug] [<0.3235.0>] 'GET' /cassandre/_design/cassandre/_rewrite/item/?corpus=MISS
{1,1}
> [snip]
> 1> [debug] [<0.3235.0>] OAuth Params: [{"corpus","MISS"}]
> [snip]
> 1> [debug] [<0.3235.0>] httpd 404 error response:
> {"error":"not_found","reason":"missing"}


Mime
View raw message