Skip to content

Find One on view=> curl: (52) Empty reply from server #2932

Answered by wohali
hamiltonsalazar asked this question in Q&A
Discussion options

You must be logged in to vote

This is probably escaping biting you.

Here's the full example on 3.1.0 driven from Linux. In this example, my CouchDB is at http://localhost:5984/.

$ curl -X PUT http://localhost:15984/abc
{"ok":true}

$ curl -X POST -H "Content-Type:application/json" http://localhost:15984/abc -d '{"_id":"biking","title":"Biking","body":"My biggest hobby is mountainbiking. The other day...","date":"2009/01/30 18:04:11"}'
{"ok":true,"id":"biking","rev":"1-9e21110dc665c8e0201643aa3ad3aeaf"}

$ curl -X POST -H "Content-Type:application/json" http://localhost:15984/abc -d '{"_id":"bought-a-cat","title":"Bought a Cat","body":"I went to the the pet store earlier and brought home a little kitty...","date":"2009…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@hamiltonsalazar
Comment options

@wohali
Comment options

@hamiltonsalazar
Comment options

Answer selected by hamiltonsalazar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2932 on June 08, 2020 07:07.