I've been trying to use the user:passw...@domain method for doing admin
actions, but it doesn't seem to work.
I get a response like this:
1> [info] [<0.10652.0>] 127.0.0.1 - - 'PUT' /hello 302
1> [debug] [<0.10654.0>] 'PUT'
/_utils/session.html?return=%2Fhello&reason=You%20are%20not%20a%20server%20admin.
{1,
1}
Headers: [{'Accept',"text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2"},
{'Cache-Control',"no-cache"},
{'Connection',"keep-alive"},
{'Content-Length',"0"},
{'Content-Type',"application/json"},
{'Host',"localhost:5984"},
{'Pragma',"no-cache"},
{'User-Agent',"Java/1.6.0_22"}]
1> [debug] [<0.10654.0>] OAuth Params: [{"return","/hello"},{"reason","You
are not a server admin."}]
1> [info] [<0.10654.0>] 127.0.0.1 - - 'PUT'
/_utils/session.html?return=%2Fhello&reason=You%20are%20not%20a%20server%20admin.
405
1> [debug] [<0.10654.0>] httpd 405 error response:
{"error":"method_not_allowed","reason":"Only GET,HEAD allowed"}
Is there some config option that has to be enable for this to work?
~
Doug.