My next attempts looked like this:
curl -d '{"keys":["fbd2b4d65d5d06d185ec7957abffed82",
"1284,133491,420...@default"]}' -H 'Content-Type=application/json' -X POST
http://whatever/codebluebig/_all_docs?include_docs=true
and
curl -d '{"keys":["fbd2b4d65d5d06d185ec7957abffed82",
"1284,133491,420...@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?
-----Original Message-----
From: Benoit Chesneau [mailto:[email protected]]
Sent: Donnerstag, 14. Oktober 2010 11:01
To: [email protected]
Subject: Re: Fetch multiple Documents with a single request
On Thu, Oct 14, 2010 at 10:54 AM, Peter Frisch <[email protected]> wrote:
> I was very happy to find the apache wiki page about fetching bulk documents
> with one request. Unfortunately I always receive a error message claiming
> that my request was no valid JSON. After staring at my request for half an
> hour I still can't find a malformed JSON there:
>
> curl -d '{"keys":["1-7987539b0f7c047728dbd21b16fe442e"]}' -X POST
> http://whatever/codebluebig/_all_docs
>
> Has anyone an idea what the problem might be?
>
-H "Content-Type: application/json" is missing.
- benoƮt