httpie post json code example
Example 1: httpie on windows
pip install --upgrade pip setuptools pip install --upgrade httpie
Example 2: HTTPoison post 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, [])
Example 3: httpie on windows
python -m pip install --upgrade pip