i have runing bitcoind on ubuntu. bitcoin-cli works fine. can not working json rpc protocol
bitcoin.conf file:
testnet=0 rpcuser="bitcoinrpc" rpcpassword="xxxxx" rpcport=8332 rpcallowip="*" server=1
http post request url='http://bitcoinrpc:xxxxx@127.0.0.1:8332/' fails 401 error.
request headers:
accept:*/* accept-encoding:gzip, deflate accept-language:en-us,en;q=0.8,ru;q=0.6,de;q=0.4,sr;q=0.2 authorization:basic yml0y29pbnjwyzp4ehh4ea== cache-control:no-cache connection:keep-alive content-length:53 content-type:text/plain dnt:1 host:127.0.0.1:8332 origin:chrome-extension://fhjcajmcbmldlhcimfajhfbgofnpcjmb pragma:no-cache user-agent:mozilla/5.0 (x11; linux x86_64) applewebkit/537.36 (khtml, gecko) ubuntu chromium/51.0.2704.79 chrome/51.0.2704.79 safari/537.36
request post payload:
{jsonrpc: "2.0", method: "getinfo", params: []}
what correct way bitcoind json rpc autentification?
Comments
Post a Comment