title: xml-rpc request using curl?
body: <p>I have a Magento server that has various methods exposed through the API. I am prototyping various client-side modules to call this API. This has been successful so far.</p>
  
  <p>I just started using curl to push xml through. Surprisingly, I'm unable even to get past the API login. Here's what I am doing (the 'login' method takes two strings, the username and password).</p>
  
  <pre><code>curl --data-urlencode @xmlrpc http://domain/api/xmlrpc
  </code></pre>
  
  <p>contents of file xmlrpc</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
   &lt;methodCall&gt; 
   &lt;methodName&gt;login&lt;/methodName&gt;
   &lt;params&gt;
   &lt;param&gt;
   &lt;value&gt;apiUser&lt;/value&gt;
   &lt;/param&gt;
   &lt;param&gt;
   &lt;value&gt;apiKey&lt;/value&gt;
   &lt;/param&gt;
   &lt;/params&gt;
   &lt;/methodCall&gt;
  </code></pre>
  
  <p>This is what I get:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;methodResponse&gt;
  &lt;fault&gt;
  &lt;value&gt;
  &lt;struct&gt;
  &lt;member&gt;
  &lt;name&gt;faultCode&lt;/name&gt;
  &lt;value&gt;&lt;int&gt;631&lt;/int&gt;&lt;/value&gt;
  &lt;/member&gt;
  &lt;member&gt;
  &lt;name&gt;faultString&lt;/name&gt;
  &lt;value&gt;&lt;string&gt;Failed to parse request&lt;/string&gt;&lt;/value&gt;
  &lt;/member&gt;
  &lt;/struct&gt;
  &lt;/value&gt;
  &lt;/fault&gt;
  &lt;/methodResponse&gt;
  </code></pre>
  
  <p>what does that error mean?</p>