title: sending xml and headers via curl
body: <p>wondering how I can set all this data in a curl session, via php:</p>
  
  <pre><code>POST /feeds/api/users/default/uploads HTTP/1.1
  Host: uploads.gdata.youtube.com
  Authorization: AuthSub token="DXAA...sdb8"
  GData-Version: 2
  X-GData-Key: key=adf15ee97731bca89da876c...a8dc
  Slug: video-test.mp4
  Content-Type: multipart/related; boundary="f93dcbA3"
  Content-Length: 1941255
  Connection: close
  
  --f93dcbA3
  Content-Type: application/atom+xml; charset=UTF-8
  
  &lt;?xml version="1.0"?&gt;
  &lt;entry xmlns="http://www.w3.org/2005/Atom"
    xmlns:media="http://search.yahoo.com/mrss/"
    xmlns:yt="http://gdata.youtube.com/schemas/2007"&gt;
    &lt;media:group&gt;
      &lt;media:title type="plain"&gt;Bad Wedding Toast&lt;/media:title&gt;
      &lt;media:description type="plain"&gt;
        I gave a bad toast at my friend's wedding.
      &lt;/media:description&gt;
      &lt;media:category
        scheme="http://gdata.youtube.com/schemas/2007/categories.cat"&gt;People
      &lt;/media:category&gt;
      &lt;media:keywords&gt;toast, wedding&lt;/media:keywords&gt;
    &lt;/media:group&gt;
  &lt;/entry&gt;
  --f93dcbA3
  Content-Type: video/mp4
  Content-Transfer-Encoding: binary
  
  &lt;Binary File Data&gt;
  --f93dcbA3--
  </code></pre>
  
  <p>I don't understand why have some headers, then the <code>--f93dcbA3</code> more headers (what's the boundary?), some xml (why here ?), more headers and the content of a file.</p>
  
  <p>I know how to make the request without the <code>xml</code> part and the 'boundary'.</p>
  
  <p>Any help will be appreciated :D</p>