3
http://localhost:7474/user/neo4j
,我收到消息:
{
"errors" : [ {
"message" : "No authorization header supplied.",
"code" : "Neo.ClientError.Security.AuthorizationFailed"
} ]
}
我搜索上neo4j文档和它说:
Authenticate by sending a username and a password to Neo4j using HTTP Basic Auth. Requests should include an Authorization header, with a value of Basic <payload>, where "payload" is a base64 encoded string of "username:password".
Example request
GET http://localhost:7474/user/neo4j
Accept: application/json; charset=UTF-8
Authorization: Basic bmVvNGo6c2VjcmV0
Example response
200: OK
Content-Type: application/json; charset=UTF-8
我正在使用网络浏览器查看信息,如何“包括授权标题”网页浏览器(Firefox)?我不明白它说什么。如何输入这些示例请求?
好的答案。我还发现诸如[Postman](https://www.getpostman.com/)或[Fiddler](http://www.telerik.com/fiddler)等客户有用。我没有从属关系,要么我应该指出! – ceej
这意味着我必须使用工具将请求发送到API? – anhtv13
在curl的情况下,curl是一个简单的命令工具,您可以使用它代替浏览器。 Postman是一款位于Chrome浏览器内部的实用程序,Fiddler是位于浏览器和外部世界之间的代理。一个简单的方法是使用in-URL认证,如下所示:'http:// username:password @ localhost:7474/user/neo4j' –