curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "walletpassphrase", "params": ["<yourwalletpassword>", 99999, true] }' -H 'content-type: text/plain;' http://<rpcuser>:<rpcpassword>@127.0.0.1:3333
Ran from the cmd prompt so I can test easily.
instead of 127.0.0.1 try using 'localhost'
so
http://user:pass@localhost:3333also -
is port 3333 what the service is listening on?No, its custom port set in conf.
Trying now.
Nope, same errors even with localhost set.
curl: (6) Could not resolve host: 1.0,
curl: (6) Could not resolve host: id
curl: (6) Could not resolve host: method
curl: (6) Could not resolve host: walletpassphrase,
curl: (6) Could not resolve host: params
curl: (3) [globbing] bad range in column 6
curl: (6) Could not resolve host: 99999,
curl: (3) [globbing] unmatched close brace/bracket in column 5
curl: (3) [globbing] unmatched close brace/bracket in column 1
curl: (6) Could not resolve host: text
{"result":null,"error":{"code":-32700,"message":"Parse error"},"id":null}