My config: ~/.bitcoin/bitcoin.conf
daemon=1
prune=600
maxconnections=12
maxuploadtarget=20
server=1
Version:
$ bitcoind --version
Bitcoin Core Daemon version v0.14.0.0-g43a987c1c
Copyright (C) 2009-2017 The Bitcoin Core developers
Why doesn't this work and require authentication?
$ curl -v --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8332 (#0)
> POST / HTTP/1.1
> Host: 127.0.0.1:8332
> User-Agent: curl/7.47.0
> Accept: */*
> content-type: text/plain;
> Content-Length: 71
>
* upload completely sent off: 71 out of 71 bytes
< HTTP/1.1 401 Unauthorized
< WWW-Authenticate: Basic realm="jsonrpc"
< Date: Sun, 16 Apr 2017 05:09:10 GMT
< Content-Length: 0
< Content-Type: text/html; charset=ISO-8859-1
<
* Connection [#0](/bitcoin-bitcoin/0/) to host 127.0.0.1 left intact