Input

Output language

Parses one POSIX curl command without executing it or contacting its URL. Quote URLs and data. Supports literal headers, Basic auth, cookies, data, JSON and GET query data; file arguments, expansion and other options are rejected.

Fetch cannot reproduce browser-controlled or duplicate headers. Use Go for those headers; generated clients use their own transport and redirect rules.

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.