title: jQuery Ajax post to WCF getting bad request
body: <p>I am attempting to create an auto-complete box... and I can retrieve appropriate JSON using Fiddler, but when implemented in code, I get a connection error.
  Code: </p>
  
  <pre><code>&lt;htm&gt;
  &lt;Head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;input type="text" id="txt_search" name="search"&gt;
  &lt;span id="suggest"&gt;&lt;/span&gt;      
  &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function() {
  
      $("#txt_search").keyup(function() 
      {
  
          var search; 
          search = $("#txt_search").val(); 
  
          if (search.length &gt; 2) 
              { 
  
                  // Trigger AJAX request 
  
                  $.ajax( 
                  { 
                      type: "POST",
                      contentType: "application/json; charset=utf-8",
                      url: "*****",
                      data: { "FirstPartOfName":"Med " },
                      dataType: "json",
                      success: function(message)  { 
                          if (message.length &gt; 0) 
                              { 
                              alert('It got data back....');
                              message = "Do you mean: " + message; 
                              $("#suggest").append(message);
                              }
                          else
                              {
                              alert('Nothing came back....');
                              }
                          }
                  }       );
              } 
              else { 
                  // Empty suggestion list 
                  $("#suggest").empty();
                  } 
      });
  
  });
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I cannot provide the URL, but I can connect using Fiddler to test it. I'm thinking it could be a problem with WCF, but how then can I test correctly with Fiddler?</p>