Not sure about createrawtransaction, but I've gotten the following to work with listunspent, and getinfo:
curl --user USERID --data-binary '{"method": "COMMAND" }' http://127.0.0.1:8332/
Where:
- USERID is the rpcuser from bitcoin.conf
- COMMAND is the RPC command
When there is one parameter (such as with dumpprivkey, gettransaction, and validateaddress) the following seems to work:
curl --user USERID --data-binary '{"method": "COMMAND", "params": ["PARAMETER"]}' http://127.0.0.1:8332/
Where:
- USERID is the rpcuser from bitcoin.conf
- COMMAND is the RPC command
- PARAMETER is the required RPC parameter
I think I've also gotten the following to work:
curl --user USERID --data-binary '{"method": "walletpassphrase", "params": ["PASSPHRASE", 120]}' http://127.0.0.1:8332/
Where:
- USERID is the rpcuser from bitcoin.conf
- PASSPHRASE is the passphrase I used to encrypt my wallet
Hopefully these examples will get you headed down the right path.