How to use Code → cURL
- 1. Paste fetch, Axios, or requests. A single call works best.
- 2. Read the cURL. Method, URL, headers, and body are copied when found.
- 3. Tweak in HTTP Composer if needed. This is a heuristic, not a compiler.
- 4. Nothing is sent. The command is only text.
About this tool
The other direction of cURL → code. Paste a fetch, Axios, or Python requests snippet and get a cURL line you can share in a ticket. Parsing is heuristic: unusual templates may need a manual edit.
What it looks for
URL strings, method, headers objects, and JSON.stringify bodies.
What it skips
Auth helpers, interceptors, and multi-step clients.
Code examples
fetch
await fetch("https://api.example.com", { method: "POST" });