title: Rest Sharp - 406 Error - No match for accept header
body: <p>I'm getting a 406 error when trying to use RestSharp to post a request to a third-party application.  I'm new to REST, so I have to admit I didn't even know you could add headers.  I tried adding these, but I'm still getting the same issue:</p>
  
  <pre><code>    var client = new RestClient(myURL);            
  
      RestRequest request = new RestRequest("restAction", Method.POST);     
  
      request.AddHeader("Accept", "text/plain"); 
      request.AddHeader("Content-Type", "text/plain");
  
      request.AddParameter("parameter1", param1);
      request.AddParameter("parameter2", param2);
  
      var response = client.Execute(request);
  </code></pre>
  
  <p>From what I've read, this may be dealing with a header named "accept".  Is that right?</p>
  
  <p>Any idea what could be going on?</p>