In case anyone is ever trying to use curl to post CBOR data from a file to an api, note that you need the --data-binary
option, not the usual -d
, which is short for --data-ascii
.
curl --data-binary @push.cbor "http://localhost:8080/dag/push"
In case anyone is ever trying to use curl to post CBOR data from a file to an api, note that you need the --data-binary
option, not the usual -d
, which is short for --data-ascii
.
curl --data-binary @push.cbor "http://localhost:8080/dag/push"