#!/bin/bash
url="http://localhost:5000"
api="Sample/LoadData"
json=$(cat<<EOF
{
}
EOF
)
res=$(curl -v -s -H "Content-Type:application/json" -d "$json" $url/$api)
echo $res
curl -d "a=1&b=strval" -X POST http://localhost:5000
curl -d '{"a":1, "b":"strval"}' -H "Content-Type: application/json" -X POST http://localhost:5000
curl --get --data-urlencode "\$top=1" http://some/odata/Dataset
using mitmweb can analyze localhost traffic
curl -x "http://localhost:8080" http://some/odata/Dataset