I am trying to publish some xml data using curl on the command line. In particular, I am trying to run the following command to connect to a billing service provider:
curl https://core.spreedly.com/v1/gateways.xml \ -u 'secretKey' \ -H 'Content-Type: application/xml' \ -d '<gateway><gateway_type>test</gateway_type></gateway>'
However, I keep getting the following error:
< was unexpected at this time.
How do I enter xml data?
source share