Keep the request details
Convert methods, headers, inline request bodies, JSON, form data and Basic authentication. GET query parameters are supported with -G. Inline --data-urlencode values support spaces, Unicode and special characters for query strings and form bodies.
Frequently asked questions
Which cURL options are understood?
The ones that describe the request: method, headers, body data, JSON, basic authentication and form fields. Transport and diagnostic flags such as verbosity, retries or proxy settings have no direct equivalent in the generated code and are ignored.
Is my API key sent anywhere?
No. The conversion runs entirely in your browser and the request is never executed, so headers and tokens in the command stay on your machine. Still, rotate any key you have pasted into a shared screen or ticket.
Is the generated code ready for production?
It reproduces the request faithfully, but production code also needs timeouts, error handling and a reused HttpClient or fetch wrapper rather than a fresh one per call. Take it as a correct starting point, not a finished class.