title: cURL vs Postman, different responses to HTTPS POST
body: <p>We are setting up a reporting feed to a client and, in testing out the endpoint, we are receiving different responses between cURL (command-line) and Postman.  In Postman, the request goes through, just fine; we get a 200-OK back.  However, when we send the request in cURL, we get the following response back <code>curl: (60) SSL certificate problem: certificate has expired</code></p>
  <h2>With cURL</h2>
  <p>The cURL request looks like the following:</p>
  <pre><code>curl -i -H &quot;content-type: application/json&quot; -d '{&quot;foo&quot;: [],&quot;bar&quot;: [],&quot;baz&quot;: []}' https://test.example.com/notARealEndpoint
  </code></pre>
  <h2>With Postman</h2>
  <p>The Postman setup is hard to display, but it's code-conversion looks like:</p>
  <p><strong>cURL interpretation</strong></p>
  <pre><code>curl --location --request POST 'https://test.example.com/not/aReal/Endpoint' --header 'Content-Type: application/json' --header 'Content-Type: text/plain' --data-raw '{&quot;foo&quot;: [],&quot;bar&quot;: [],&quot;baz&quot;: []}'
  </code></pre>
  <p>*<em>This, by the way, returns the same <code>certificate has expired</code> error when run in command line</em></p>
  <p><strong>HTTP interpretation</strong></p>
  <pre><code>POST /not/aReal/Endpoint HTTP/1.1
  Host: test.example.com
  Content-Type: application/json
  Content-Type: text/plain
  
  {&quot;foo&quot;: [],&quot;bar&quot;: [],&quot;baz&quot;: []}
  </code></pre>