title: How to post XML data with cURL using cmd in windows 7?
body: <p>I am trying to post some xml data using curl on command line. Particularly I m trying to run the following command to connect to a billing service provider:</p>
  
  <pre><code>curl https://core.spreedly.com/v1/gateways.xml \
      -u 'secretKey' \
      -H 'Content-Type: application/xml' \
      -d '&lt;gateway&gt;&lt;gateway_type&gt;test&lt;/gateway_type&gt;&lt;/gateway&gt;'
  </code></pre>
  
  <p>However I m keep getting the following error:</p>
  
  <pre><code>&lt; was unexpected at this time.
  </code></pre>
  
  <p>How should I type my xml data?</p>