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
RegExp Tester
Test regular expressions and inspect matches locally.
Regex Visualizer
Visual regex pattern diagram with live match highlighting and capture group annotations.
Subnet Calculator
Compute CIDR subnets, usable hosts, and network ranges.
Cron Parser
Translate cron syntax into plain English.
URL Parser
Break a URL into protocol, host, path, and query parts.
HTML Previewer
Paste HTML and see it rendered live in a safe, sandboxed preview.
HTTP Status Code Reference
Search and look up every HTTP status code and its meaning.
MIME Type Lookup
Find the MIME type for a file extension, or the extensions for a MIME type.