admin 管理员组

文章数量: 887016

原因window的command.exe不支持单引号,所以要处理一下命令:先转义双引号,然后把单引号改为双引号,

比如,命令:

curl -X POST --data '{"jsonrpc":"2.0","method":"int_signAddress","params":["INT36qSQxM7Bt8TrRLL1XtBeXJXBUM52", "0xEB0F92067B76D19740EB81AF927B77F7A8FE046E6EA48B17A003557590D8425A"],"id":1}' -H 'content-type: application/json;' http://localhost:8555/testnet

要改成:

curl -X POST --data "{\"jsonrpc\":\"2.0\",\"method\":\"int_signAddress\",\"params\":[\"INT36qSQxM7Bt8TrRLL1XtBeXJXBUM52\", \"0xEB0F92067B76D19740EB81AF927B77F7A8FE046E6EA48B17A003557590D8425A\"],\"id\":1}" -H "content-type: application/json;" http://localhost:8555/testnet

本文标签: 报错 命令 POST globbing curl