For debugging CURL --POST, use `--trace-ascii dump.txt` to log everything. Helps spot weird encoding issues.
JSON needs headers, form data usually doesn’t. But if the server’s picky, you might need `-H "Content-Type: application/x-www-form-urlencoded"` for form stuff.
Also, `jq` is great for validating JSON before sending.
JSON needs headers, form data usually doesn’t. But if the server’s picky, you might need `-H "Content-Type: application/x-www-form-urlencoded"` for form stuff.
Also, `jq` is great for validating JSON before sending.
