I'm using curl to request from the monero-wallet-rpc, but somehow it does not recognize the user/password. I used the following command

curl -u user:password -X POST -d '{"jsonrpc":"2.0","id":"0","method":"getbalance"}' -H 'Content-Type: application/json'

I'm sure that the monero-wallet-rpc running correctly since I can connect throught it by using a browser, it ask for a user/password and it work.


Try to enable http digest authentication:

curl --digest
     -u user:password
     -X post
     -d '{"jsonrpc":"2.0", "id":"0", "method":"getbalance"}'
     -H 'content-type: application/json'
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.