Post XML using curl
echo '<doc><item>Some content.</item></doc>' | curl -X POST -H 'Content-type: text/xml' -d @- http://example.com/restapi
This is handy for adding web services to applications that do not do web services but can do command lines--FileMaker for example.