Content :

<?xml version="1.0" encoding="utf-8"?>
<content>
mycontent
</content>

Curl command :

curl -d @file.txt -X POST -w '%{http_code}\n'  http://yourserver.example.com

, ,