incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <j...@mooseyard.com>
Subject Re: Issue: _changes feed's Content-Encoding is wrong
Date Mon, 06 Jun 2011 16:29:22 GMT

On Jun 5, 2011, at 10:54 PM, Pasi Eronen wrote:

> Curl normally hides the chunked transfer encoding from the user. If
> you add the "--raw" option (requires Curl >=7.16.2), the chunk
> prefixes will be visible, too.

Ah, you’re right (and it makes sense, in hindsight, that curl does that.) Hm, I’ll have
to search for another explanation of why my code isn’t working. But it was so easy to blame
someone else :(

—Jens

$ curl -i --raw 'http://127.0.0.1:5984/demo-addresses/_changes?feed=normal'
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Server: CouchDB/1.1.1 (Erlang OTP/R14B)
Etag: "1H2QIKQ2E49Q68SEOZB1CBFFF"
Date: Mon, 06 Jun 2011 16:27:34 GMT
Content-Type: text/plain;charset=utf-8
Cache-Control: must-revalidate

d
{"results":[

6a
{"seq":2,"id":"3aaa5e74e5d96db3b2248fb1c404f888","changes":[{"rev":"1-422bdffd6eef915859d46a18bf373d74"}]}
6c
,
{"seq":8,"id":"3aaa5e74e5d96db3b2248fb1c404eb65","changes":[{"rev":"7-7e833e1c2ee3db8e4ae3f615c20ca592"}]}
12

],
"last_seq":8}

1


0


Mime
View raw message