我对cURL不是很熟悉,所以发送这个请求的结果是:
root@xyzxyz:~# curl --user 'username' --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"helloWorld","params":[]}' -H 'content-type:text/plain;' http://192.168.56.1:8442
Enter host password for user 'username':
curl: (18) transfer closed with 349 bytes remaining to read
密码本身已输入。所有相关的i基金都是:
not helpful, since this is for sure not a network problem (server is running on my local machine)
发布于 2019-01-13 21:14:43
pyBitmessage是一个纯XML-RPC实现,而不是像Bitcoind那样的"JSON-RPC“。所以正确的CURL语法应该是:
curl --user 'username' --data-binary '<methodCall><methodName>helloWorld</methodName><params><param><value><string>hello</string></value></param><param><value><string>World</string></value></param></params></methodCall>' -H 'content-type:text/plain;' http://192.168.56.1:8442
https://stackoverflow.com/questions/52591621
复制相似问题