Here are the responses when sent to httpbin.org/anything. Converted to elixir map.
This is the json response from the curl request
%{
"args" => %{},
"data" => "",
"files" => %{"file" => "<<BASEENCODED IMAGE FILE>>"},
"form" => %{
"from" => "5555555555",
"orgid" => "1234567890987654321",
"to" => "1234"
},
"headers" => %{
"Accept" => "*/*",
"Authorization" => "Bearer asupersecretkey",
"Content-Length" => "258300",
"Content-Type" => "multipart/form-data; boundary=------------------------ef42181273f52b98",
"Host" => "httpbin.org",
"User-Agent" => "curl/7.79.1",
"X-Amzn-Trace-Id" => "Root=1-62e052b9-5df66f172fe5904b220380f3"
},
"json" => nil,
"method" => "POST",
"origin" => "my.ip.ad.dr",
"url" => "https://httpbin.org/anything"
}
This is the response from HTTPoison
%{
"args" => %{},
"data" => "",
"files" => %{"file" => "<<BASEENCODED IMAGE FILE>>"},
"form" => %{
"from" => "5555555555",
"orgid" => "1234567890987654321",
"to" => "1234"
},
"headers" => %{
"Authorization" => "Bearer asupersecretkey",
"Content-Length" => "258518",
"Content-Type" => "multipart/form-data; boundary=---------------------------jtlqvenjbyxkxrrs",
"Host" => "httpbin.org",
"User-Agent" => "hackney/1.18.1",
"X-Amzn-Trace-Id" => "Root=1-62e051d5-6dae5f9e5b2a020d6ad368dd"
},
"json" => nil,
"method" => "POST",
"origin" => "my.ip.ad.dr",
"url" => "https://httpbin.org/anything"
}






















