Post XML or another custom media type.
Section: HTTP Methods and APIs
Send custom content type
bash
bash
curl -X POST https://api.example.com/import -H 'Content-Type: application/xml' --data-binary @payload.xmlExplanation
Not all APIs use JSON; curl can send any content type.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing HTTP Methods and APIs