cURL → fetch
Handles the shapes real docs produce: quoted JSON bodies, line continuations, -u basic auth, -F form fields. Browser-only, which matters here more than most — pasted curl commands routinely carry live Authorization headers.
fetch()
Handles the shapes real docs produce: quoted JSON bodies, line continuations, -u basic auth, -F form fields. Browser-only, which matters here more than most — pasted curl commands routinely carry live Authorization headers.