Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -H "Content-Type: application/json"
- -H "Authorization: Basic `echo -n 'neo4j:neo4j' | base64`"
- -X POST -d '{"password":"nopass"}'
- http://localhost:7474/user/neo4j/password
- var f = require('node-fetch');
- var url = 'http://neo4j:n0p4ss@localhost:7474/user/neo4j/password';
- var auth = new Buffer('neo4j:neo4j').toString('base64');
- f(url, {
- method: 'POST',
- body: {'password': 'nopass'},
- headers: {
- 'Content-Type': 'application/json',
- 'Authorization': 'Basic ' + auth
- }
- })
- .then(res => res.text())
- .then(txt => { console.log(txt); });
- {
- "errors" : [ {
- "code" : "Neo.ClientError.Request.InvalidFormat",
- "message" : "Required parameter 'password' is missing."
- } ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement