couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Williams <cliffywi...@aol.com>
Subject Re: Fetch multiple Documents with a single request
Date Thu, 14 Oct 2010 10:54:06 GMT
Peter,

what host are you running curl from ?? is it Linux or Windows ??

best regards

cliff


On 14/10/10 11:08, Peter Frisch wrote:
> I'm using couchDB 1.0.1 and it doesn't work, no matter, if I use the header option or
not ...
> Might it be a setting within the couchDB or on the http server? Any other ideas?
>
> -----Original Message-----
> From: Quentin Pradet [mailto:quentin.pradet@gmail.com]
> Sent: Donnerstag, 14. Oktober 2010 11:44
> To: user@couchdb.apache.org
> Subject: Re: Fetch multiple Documents with a single request
>
> Hi,
>
> This exact command works with CouchDB 1.0.1:
>
> curl -d '{"keys":["ee3fb428027b028fe5edf3df2cfff36c",
> "ee3fb428027b028fe5edf3df2cffd258"]}' -X POST '
> http://localhost:5984/mesures/_all_docs?include_docs=true'
>
> I did not need to specify the content-type, and even when I
> specified it (correctly or the way you did it) it did work as
> expected.
>
> On Thu, Oct 14, 2010 at 1:40 PM, Benoit Chesneau<bchesneau@gmail.com>wrote:
>
>> On Thu, Oct 14, 2010 at 11:29 AM, Peter Frisch<peter.frisch@vervis.de>
>> wrote:
>>> My next attempts looked like this:
>>>
>>> curl -d '{"keys":["fbd2b4d65d5d06d185ec7957abffed82",
>> "1284,133491,420777@default"]}' -H 'Content-Type=application/json' -X POST
>> http://whatever/codebluebig/_all_docs?include_docs=true
>>> and
>>>
>>> curl -d '{"keys":["fbd2b4d65d5d06d185ec7957abffed82",
>> "1284,133491,420777@default"]}' -H "Content-Type=application/json" -X POST
>> http://whatever/codebluebig/_all_docs?include_docs=true
>>> and still resulted in:
>>>
>>> {"error":"bad_request","reason":"invalid UTF-8 JSON"}
>>>
>>> Any other thoughts?
>>>
>>
>> "=" != ":" (in your header declaration)
>>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message