Skip to content
yutils
Example

Options

URL: https://api.yutils.dev/tools
Method: POST
Headers: Content-Type: application/json
Body: { "name": "new-tool" }

Output (curl command)

curl -X POST 'https://api.yutils.dev/tools' \
  -H 'Content-Type: application/json' \
  -d '{ "name": "new-tool" }'

Note

JSON Content-Type is auto-detected when the body looks like JSON. Single quotes are preferred for shell safety.

Usage / FAQ

When to use

  • Quick API calls without firing up Postman / Insomnia
  • Attach reproducible API examples to issues and docs
  • Share "try this" curl snippets with teammates
  • Verify curl commands before pasting into a CI script
  • Lay out headers / body cleanly for a complex API call

FAQ

Q.Does this work in Windows PowerShell?
A.The output targets bash / zsh (single quotes). In PowerShell, `curl` is an alias for `Invoke-WebRequest` — use `curl.exe` explicitly or translate to native PowerShell syntax.
Q.How should I handle secrets in the Authorization header?
A.Use environment variables — `-H "Authorization: Bearer $TOKEN"`. Don't paste commands with raw tokens into issues.
Q.What about non-ASCII bodies?
A.UTF-8 is passed through. Shell escaping can bite, though — `--data-binary` or a file (`curl -d @body.json`) is safer for complex payloads.
Fun facts
  • curl was created in 1996 by Sweden's Daniel Stenberg — initially named 'httpget', then 'urlget', then 'curl'. For nearly 30 years it's been maintained by essentially one person, and it became the universal HTTP tool across every OS, language, and device.

    Wikipedia — curl
  • 'curl in everything' — curl ships in iOS, macOS, Windows, Linux, car infotainment systems, IoT devices, planes, NASA's Curiosity Mars rover, even the ISS. 'When Stenberg's laptop crashes the internet shakes' is only half a joke.

    curl — Companies using
  • curl 7.66 (2019) added HTTP/3 (QUIC) support — Stenberg himself is an active member of the IETF QUIC working group, so curl effectively doubles as the reference implementation for HTTP standards. Spec and implementation by the same hands is a rare luxury.

    curl — HTTP/3