Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Doc need to be udpated? #213

dongshengbc opened this Issue · 2 comments

2 participants

dongsheng Jens Alfke

Section: What's My Realm?

The response I got from is very different from the doc. Check what I got:

dongsheng@Dongshengs-MacBook-Pro ~ $ curl -i -X PUT
HTTP/1.1 401 Unauthorized
Server: CouchDB/1.2.0 (Erlang OTP/R15B)
Date: Wed, 09 Jan 2013 19:08:32 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 64
Cache-Control: must-revalidate

{"error":"unauthorized","reason":"You are not a server admin."}
Jens Alfke

Well, the example in the doc was hiding irrelevant headers.

The reason the WWW-Authenticate: header is missing is because CouchDB doesn't send it by default. (Which is in violation of the HTTP 1.1 spec, and I've argued about this with CouchDB people in the past...) To get it to be sent at all you have to set the "WWW-Authenticate" configuration variable in the "[httpd]" section to have the value you want returned from that header.

So yes, I should update that section to explain this part.

Jens Alfke

Updated the wiki page.

Jens Alfke snej closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.