title: XML HTTP Post in Go
body: <p>I'm attempting to create a post request that uses xml.</p>
  
  <p>I know I need to use:</p>
  
  <pre><code>http.Post("myurl", "text/xml", body)
  </code></pre>
  
  <p>But the thing I can't figure out is how to set the actual XML data to be sent.</p>
  
  <pre><code>&lt;request&gt;
      &lt;parameters&gt;
          &lt;email&gt;test@test.com&lt;/email&gt;
          &lt;password&gt;test&lt;/password&gt;
      &lt;/parameters&gt;
  &lt;/request&gt;
  </code></pre>
  
  <p>And setting a header to have <code>Content-Type: text/xml</code></p>