title: Using RestSharp to submit a POST request, values are added to header
body: <p>I am trying to submit some data to an API using RestSharp in C# and it seems all of my parameters are added to the Headers collection - or that is just how they are catalogued in VS.</p>
  
  <p>Here is my code</p>
  
  <pre><code>var client = new RestClient("https://api.com");
  var request = new RestRequest("/recognize", Method.POST);
  
  request.AddHeader("app_id", "");
  request.AddHeader("app_key", "");
  request.AddHeader("Content-Type", "multipart/form-data");
  
  request.AddParameter("gallery_name", model.gallery_name);
  request.AddParameter("image", model.image);
  
  var response = client.Execute(request);
  </code></pre>
  
  <p>The error back from the API says the request is missing the gallery_name and image parameters, but looking into the request object they are there in the Headers collection.</p>
  
  <p>I can make the call in Postman where the method is set to Post and the Body is set to form-data, along with 2 key/value pairs listed.</p>
  
  <p>What am I doing wrong?</p>