title: HTTP Put set content type
body: <p>How can I set content type of HTTP Put as xxxx+xml?</p>
  
  <p>I was referring to solution in this link <a href="https://stackoverflow.com/questions/2559948/android-sending-xml-via-http-post-soap">Android, sending XML via HTTP POST (SOAP)</a>. Its fine when we set content type like this, i mean the xml is came along with the request:</p>
  
  <pre><code>httppost.setHeader("Content-Type","application/soap+xml;charset=UTF-8");
  </code></pre>
  
  <p>but when i change type <strong>soap</strong> to something custom, the xml disappear on the request (i saw on the wireshark), like this:</p>
  
  <pre><code>httppost.setHeader("Content-Type","application/vnd.oma-pcc+xml;charset=UTF-8");
  </code></pre>
  
  <p>then, i tried put the xml only, so the request is ok again:</p>
  
  <pre><code>httppost.setHeader("Content-Type","application/xml;charset=UTF-8");
  </code></pre>
  
  <p>I want to know what exactly the rules for the content-type than come together with the xml type so that the xml still there.</p>
  
  <p>Thanks.</p>