title: C# equivalent of requests.post() function
body: <p>I'm converting some python scripts to its C# equivalent. When I run the following script (using requests module), the sever is happy and there is no issue with it:</p>
  
  <pre><code>auth_header = {'Authorization': 'Bearer ' + access_token}
  r = requests.post(api_url + '/v1/instances', headers=auth_header, json =params)
  </code></pre>
  
  <p>However, when I run the following C# equivalent code, the server returns "405 METHOD NOT ALLOWED":</p>
  
  <pre><code>HttpClient client  = new HttpClient();
  client.BaseAddress = new Uri(api_url);
  
  client.DefaultRequestHeaders.Authorization = new 
            System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", access_token);
            // Add an Accept header for JSON format.
            client.DefaultRequestHeaders.Accept.Add(
            new MediaTypeWithQualityHeaderValue(@"application/json"));
            string jsonDumps = JsonConvert.SerializeObject(parameters);
            var content = new StringContent(jsonDumps, Encoding.UTF8,@"application/json");
            var postResult = client.PostAsync(@"v1/pipelines", content).Result; // ERROR: 
               //StatusCode: 405, ReasonPhrase: 'METHOD NOT ALLOWED'.
  </code></pre>
  
  <p>It is notable that there is no issue when I run the GET method:</p>
  
  <pre><code>var response = client.GetAsync(@"v1/pipelines").Result; 
  </code></pre>
  
  <p>I do not have access to the sever code. I tried to use Fiddler (similar to wire shark) to see what the python code is sending to the server but using Fiddler causes the python script failed to work properly stating that SSLError: CERTIFICATE_VERIFY_FAILED].</p>