当前位置: 首页 > 工具软件 > globbing > 使用案例 >

Windows中使用curl命令报错curl post [globbing] unmatched close brace/bracket in column 67

令狐声
2023-12-01

原因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
 类似资料: