2

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 http://127.0.0.1:8082/json_rpc -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.

2

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'
     http://127.0.0.1:8082/json_rpc

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.