narci2010 opened a new issue #1758: can't create database in java using httpclient in cluster port URL: https://github.com/apache/couchdb/issues/1758 i can create database in commond line as below: [root@localhost etc]# curl -X PUT "http://192.168.3.93:5984/test" --user root Enter host password for user 'root': {"ok":true} the same account and password in java httpclient,it return error message as below: {"error":"unauthorized","reason":"You are not a server admin."} my java code: String fullUrl = "http://192.168.3.93:5984/test"; HttpPut httpput = new HttpPut(fullUrl); // 设置header httpput.setHeader("Content-type", "application/json;charset=UTF-8"); httpput.setHeader("Accept", "application/json"); httpput.setHeader("Cookie", this.login());//login use /_session api
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
