title: Curl -d command from the terminal
body: <p>I had a specific question in regards to curl. I want to call my xml page and  I am executing something like this from my terminal:</p>
  
  <pre><code>curl -d @&lt;xml page&gt; &lt;url&gt; 
  </code></pre>
  
  <p>However when i execute the following command, i get the following:</p>
  
  <pre><code>Invalid request structure
  </code></pre>
  
  <p>In my xml page request is as follows:</p>
  
  <pre><code>&lt;example type="request"&gt;
              &lt;doLogin&gt;
                      &lt;userName&gt;my_username&lt;/userName&gt;
                      &lt;password&gt;my_password&lt;/password&gt;
                      &lt;...other details&gt;
              &lt;/doLogin&gt;
  &lt;/example&gt;
  </code></pre>
  
  <p>How do i pass the parameters for username and password in the curl command?</p>