Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Doc need to be udpated? #213

Closed
dongshengbc opened this Issue · 2 comments

2 participants

dongsheng Jens Alfke
dongsheng

https://github.com/couchbaselabs/TouchDB-iOS/wiki/Guide%3A-Replication

Section: What's My Realm?

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


dongsheng@Dongshengs-MacBook-Pro ~ $ curl -i -X PUT https://example.iriscouch.com/dbname
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
Owner

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
Owner

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.