I use curl to send POST requests
Use -d 'json' key to provide json
Use -H 'k: v' key to add HTTP header
You may download curl here http://curl.haxx.se/download.html
MacBook-Pro:~ anton$ curl -H 'X-App: something' -d '{"k1":"v1"}' https://beta-api.betfair.com/json-rpc
{"jsonrpc":"2.0","error":{"code":-32700,"message":"DSC-0008"}}
MacBook-Pro:~ anton$
{"jsonrpc":"2.0","error":{"code":-32700,"message":"DSC-0008"}}
MacBook-Pro:~ anton$
Use -H 'k: v' key to add HTTP header
You may download curl here http://curl.haxx.se/download.html


Comment