1# a short one
2echo '{"hello": "world"}' | http POST pie.dev/post
3# a file one
4http POST pie.dev/post < files/data.json
1url = "http://myurl"
2body = Poison.encode!(%{
3 "call": "MyCall",
4 "app_key": key,
5 "param": [
6 %{
7 "page": page,
8 "registres": registers,
9 "filter": filter
10 }
11 ]
12})
13headers = [{"Content-type", "application/json"}]
14HTTPoison.post(url, body, headers, [])
15