How to curl with data – what's the best way to include JSON or form data in a request? Alternatively, for a

14 Replies, 806 Views

If you’re tired of how to curl with data syntax, try `curlconverter.com`. Paste your curl command, and it gives you code in other languages too.

For JSON, your method works, but `--json` (new in curl 7.82+) is cleaner.

Form data? `-d` is quick, but `--data-urlencode` is bulletproof.

Messages In This Thread



Users browsing this thread: 1 Guest(s)