Formatting
Curl builder writes a single curl command and does not run it. Method, headers and body are separate fields, so you are not hand-escaping a one-line shell command. A POST to https://example.test/api with Content-Type and Accept headers and the body {"name":"Sam"} comes out as curl --globoff -X 'POST' -H 'content-type: application/json' -H 'accept: application/json' --data-raw '{"name":"Sam"}' --url 'https://example.test/api'.
--globoff matters when the URL contains brackets. Curl would otherwise treat them as a glob. --data-raw sends the body exactly, without curl’s @file reading. An apostrophe in the body is escaped the shell way, so it's ok becomes 'it'\''s ok' inside the single quotes. That looks ugly and it is correct.
The URL must be absolute http or https with no embedded user or password. Header lines are Name: value, one per line, and a repeated name is an error. Snippet format stays on curl. Fetch, Axios and HTTPie have their own pages.
URL https://example.test/api, method POST, headers Content-Type: application/json and Accept: application/json, body {"name":"Sam"}.
curl --globoff -X 'POST' -H 'content-type: application/json' -H 'accept: application/json' --data-raw '{"name":"Sam"}' --url 'https://example.test/api'
--data-raw is deliberate. A body that starts with @ stays text, instead of becoming a filename curl would try to open.
Curl treats brackets in a URL as a glob unless --globoff is set. API URLs sometimes contain them, so the flag is always included.
It is quoted for a POSIX shell. The value it's ok is written as 'it'\''s ok', which is the standard way to embed a single quote.
No. You get the command text. Running it is a separate step, in your own shell, against a host you meant to call.
No. Credentials embedded in the URL are rejected so a copied command does not carry a password in the authority.