title: Sharepoint Rest OData Api returns a strange error
body: <p>I am using the OData Rest Api of Sharepoint 2013 to get and post data in my .Net application. The get works fine but the post throws me a an error. I see this in my fiddler:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"&gt;
    &lt;m:code&gt;-1, Microsoft.Data.OData.ODataException&lt;/m:code&gt;
    &lt;m:message xml:lang="de-DE"&gt;Im MIME-Typ fehlt ein Parametername für eine Parameterdefinition.&lt;/m:message&gt;
  &lt;/m:error&gt;
  </code></pre>
  
  <p>The error message is in german but it means "The Mime-Type is missing a parameter name  for a parameter definition"</p>
  
  <p>My send headers are this</p>
  
  <pre>
  POST https://myurl/_api/web/lists(guid'7ED022C7-053F-4057-A141-929DE8AA87A6')/items(3) HTTP/1.1
  Accept: application/json;odata=verbose;
  X-RequestDigest: 0x0FE934F7228D5D88530162E3E5139D096D2E58E08530600CDF1220B43F7A88B0A4EDE904F5572F4537AFC8383D5FDCD1EA324BF9C3D8F66F9438D58192FA2A85,07 Jun 2017 07:08:45 -0000
  Accept-Charset: utf-8
  X-HTTP-Method: MERGE
  If-Match: *
  Content-Type: application/json;odata=verbose;charset=utf-8
  Host: intranet.weisseskreuz.bz.it
  Content-Length: 54
  Expect: 100-continue
  
  {"__metadata":{"type":"SP.ListItem"},"TitleDE":"dddd"}
  </pre>
  
  <p>I use this code to send my post</p>
  
  <pre><code>            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(internalUrl);
              request.Accept = "application/json;odata=verbose;";            
              request.Headers.Add("X-RequestDigest", GetFormDigest(baseUrl, credential, cookie));
              request.ContentLength=json.Length;
              request.Headers.Add("Accept-Charset", "utf-8");
              request.Method = "POST";
              request.Headers.Add("X-HTTP-Method", "MERGE");
              request.Headers.Add("If-Match", "*");
              request.ContentType = "application/json;odata=verbose;charset=utf-8";          
              CredentialCache credentialCache = new CredentialCache();
              credentialCache.Add(new Uri(internalUrl), "NTLM", credential);
              request.Credentials = credentialCache;
  
              using (var streamWriter = new StreamWriter(request.GetRequestStream()))
              {
                  streamWriter.Write(json);
                  streamWriter.Flush();
                  streamWriter.Close();
              }
  
              HttpWebResponse responseInternal = (HttpWebResponse)request.GetResponse();
  </code></pre>
  
  <p>Thanks for help I am a little bit desperate.</p>