How to use the cURL to .http
- Paste one or more curl commands on the left. Multi-line commands with \ at the line ends are fine.
- The .http request appears on the right. Several commands are separated by ###.
- Save it as a .http file and send it from your editor.
Questions
Is my data uploaded anywhere?
No. The tool runs entirely in your browser. Nothing you paste or drop is sent to a server, logged or stored, so it's safe for API responses, config files and other private data.
Which curl options are converted?
The method (-X), headers (-H), body (-d, --data-raw, --json), basic auth (-u), user agent and cookies. Options that only affect curl itself, like -o or --retry, are dropped.
How do I send the request?
Nifty REST Client sends requests from .http files in VS Code, with variables, environments and a response viewer. Its Paste cURL as Request command does this conversion inside the editor.