Fixed curl rpc calls. --data flag has to be placed before data content, current command results in curl error.