curl to code
Convert a literal curl request into JavaScript Fetch, Python requests or Go net/http code locally.
Text, files and images are processed in your browser and are not uploaded.
Result
Run the tool to see the result.
How to use
Paste one POSIX curl command and choose an output language. Literal headers, Basic auth, cookies, data, JSON and GET query data are supported. Unsupported flags, shell expansion, files and multiple requests are rejected. The command and generated code are never executed by this tool.