title: Can't get RestSharp to work with DELETE and RequestBody
body: <p>I send a DELETE request with a request body, with these parameters:
  <img src="https://i.stack.imgur.com/bQmqJ.png" alt="enter image description here"></p>
  
  <p>The server responds with status 500. I do  </p>
  
  <pre><code>curl -D- -X DELETE -d "{\"pin\":\"1111\"}" -H "Content-Type:application/json" -H "Authorization:Basic sameasinimagabove" https://myrestapiendpoint/resource/id
  </code></pre>
  
  <p>and it works. I use the latest version of RestSharp.WindowsPhone v. 104.3.3.0.<br>
  What could be wrong? 
  Code for building and sending the request: </p>
  
  <pre><code>    RestRequest PrepareRequest(Method method, string url, IDictionary&lt;string, object&gt; data)
      {
          var request = new RestRequest(url, method);
          request.AddHeader("Authorization", "Basic " + "yadyadyadyada");
          request.AddHeader("X-Originator-Type", "app");
          request.AddHeader("X-Os-Type", Environment.OSVersion.Platform.ToString());
          request.AddHeader("X-Os-Version", Environment.OSVersion.Version.ToString());
          request.AddHeader("X-Device-Id", AppUtil.DeviceId);
          request.AddHeader("X-Client-Version", AppUtil.ApplicationVersion);
          request.AddHeader("Locale", System.Globalization.CultureInfo.CurrentCulture.TwoLetterISOLanguageName);
          request.AddHeader("If-Modified-Since", DateTime.UtcNow.ToString("u"));
          if (data != null || method == Method.PUT || method == Method.POST || method == Method.DELETE)
          {
              request.RequestFormat = DataFormat.Json;
              if (data == null)
                  data = new Dictionary&lt;string, object&gt;();
              string json = JsonParser.Serialize(data);
              request.AddParameter("application/json", json, ParameterType.RequestBody);
          }
      }
  
      _restClient.ExecuteAsync(request, response =&gt;
                       {
                           _activeRequests.Remove(handle);
                           done(responseHandler(AddRequestToResponse(request, response)));
                       });
  </code></pre>