Make sure you have your Content-Type header set properly, if the API requires it. More
in the section below.
Note that if you're trying to POST to a form handler, you'll most probably want to send data
in multipart/form-data format, such as name=roger&hair=black. http-console sends your POST/PUT data as is,
so make sure you've got the format right, and the appropriate Content-Type header.
setting headers
Sometimes, it's useful to set HTTP headers:
http://127.0.0.1:5984/> Accept: application/jsonhttp://127.0.0.1:5984/> X-Lodge: black
These headers are sent with all requests in this session. To see all active headers,
run the .headers command:
http://127.0.0.1:5984/> .headersAccept: application/jsonX-Lodge: black
Removing headers is just as easy:
http://127.0.0.1:5984/> Accept:http://127.0.0.1:5984/> .headersX-Lodge: black
Because JSON is such a common data format, http-console has a way to automatically set
the Content-Type header to application/json. Just pass the --json option when
starting http-console, or run the .json command: