# a short one
echo '{"hello": "world"}' | http POST pie.dev/post
# a file one
http POST pie.dev/post < files/data.json
url = "http://myurl"
body = Poison.encode!(%{
"call": "MyCall",
"app_key": key,
"param": [
%{
"page": page,
"registres": registers,
"filter": filter
}
]
})
headers = [{"Content-type", "application/json"}]
HTTPoison.post(url, body, headers, [])
HttpResponseMessage response = new HttpClient().PostAsync(url, stringContent).Result;