title: WCF Make a POST request with a parameters
body: <p>I have a wcf service that exposes a rest endpoint. I want to test it using fiddler. I have a method like this :</p>
  <pre><code> [WebInvoke(Method = &quot;POST&quot;, UriTemplate = &quot;EditContact&quot;, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped)]
      string EditContact(string idContact, Contact Contact);
  </code></pre>
  <p>I input :</p>
  <blockquote>
  <p>POST <a href="http://192.168.1.31/ContactLibrary2.0/Service.svc/rest/DeleteContact" rel="nofollow noreferrer">http://192.168.1.31/ContactLibrary2.0/Service.svc/rest/DeleteContact</a>  HTTP/1.1</p>
  </blockquote>
  <pre><code>User-Agent: Fiddler
  Host: 192.168.1.31
  Content-Type : application/json; Charset=UTF-8
  
  {
  &quot;idContact&quot;:&quot;67697&quot;,
  &quot;firstName&quot;:&quot;6767&quot;,
  &quot;lastName&quot;:&quot;afdgsg&quot;,
  &quot;email&quot;:&quot;dfghdfdb&quot;,
  &quot;age&quot;:&quot;120&quot;,
  &quot;street&quot;:&quot;sdf&quot;,
  &quot;city&quot;:&quot;dfghgfhjhdfgsdv&quot;,
  &quot;country&quot;:&quot;sdfsd&quot;
  }
  </code></pre>
  <p>More code from my project you can see : <a href="https://stackoverflow.com/questions/9903218/wcf-service-hosted-on-iis-is-not-working">HERE</a></p>
  <p>I get http 400 error (bad request error). Ideas ?</p>