Skip to content
ZeroServer.tools

curl to Elixir

Convert curl commands to Elixir HTTPoison HTTP client code. Supports headers, request body, authentication, and all common HTTP methods.

About curl to Elixir conversion

Elixir's HTTPoison library is a popular HTTP client built on Hackney. This converter maps curl flags to HTTPoison calls:-H becomes a headers list of tuples, and -d becomes the body argument. GET and POST use the convenience functions while other HTTP methods use HTTPoison.request/4. Add {:httpoison, "~> 2.0"} to your mix.exs dependencies.

Private & free — this tool runs entirely in your browser.

Recommended: IndieKit Ship your Next.js startup in days.affiliate

Related Developer Utilities tools