I'm trying to post an XML to a REST API via CURL:
λ curl -X POST -H "Content-Type: application/xml" http://localhost/vcardservice -d '<?xml version='1.0' encoding='ISO-8859-1' standalone='yes'?><ns2:vCardRequestStore>
<vcardRequestList> <vcardRequest></vcardRequest></vcardRequestList></ns2:vCardRequestStore>'
but is not working
Error:
< was unexpected at this time.
Any help is appreciated.
vcardservice