I am translating this curl POST request
to HTTPoison
. Is this the correct way
CURL:
curl -X POST “http://example.com/index?args=20” --data-binary @hello.sh
HTTPoison:
url = "http://example.com/index?args=20"
body = {:file, "hello.sh"}
HTTPoison.post(url, body)