<pre><code> curl --user ryunishida:password --data-binary '{"jsonrpc": "1.0", 
 "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-
 type: 
  text/plain;' http://127.0.0.1:18332/ -w '%{http_code}\n'
</code></pre>

<hr>

<p><code>bitcoin/bitcoin.conf</code> below</p>

<pre><code> rpcuser=ryunishida
 rpcpassword=password

 HOST=localhost
 server=1
 txindex=1
 rpcport=18332
 testnet=3
</code></pre>

<p>then i get 401</p>

CC BY-SA 3.0
2017-08-19T06:04:17.440Z
Yes I meant that
西田龍
CC BY-SA 3.0
2017-08-18T18:55:02.730Z
You mean `.bitcoin/bitcoin.conf`, right?
Nick ODell
<bitcoind><json-rpc>
bitcoind is not working
西田龍
# bitcoind is not working

(Asked by: username_0 on 2017-08-18)

curl --user ryunishida:password --data-binary '{"jsonrpc": "1.0", 
 "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-
 type: 
  text/plain;' http://127.0.0.1:18332/ -w '%{http_code}\n'


bitcoin/bitcoin.conf below
 rpcuser=ryunishida
 rpcpassword=password

 HOST=localhost
 server=1
 txindex=1
 rpcport=18332
 testnet=3

then i get 401

**Tags:** bitcoind, json-rpc

> **Comments:**
> **username_1**: You mean `.bitcoin/bitcoin.conf`, right?  
> **username_0**: Yes I meant that  

---

## 0 answers

