title: FileMaker cURL Problems
body: <p>so I've looked around everywhere to try and figure out the problem to this, but I haven't really been able to piece it together. With the recent FM 16 arrival we have gained cURL functionality, which before I was just using a simple PHP script to do all of the processing and the importing to FileMaker using the API.</p>
  
  <p>I'm trying to convert this:</p>
  
  <pre><code>$url = 'https://' . $organization . '.qualtrics.com/API/v3/responseexports';
  $header = array(
      'X-API-TOKEN: ' . $apiToken,
      'Content-Type: application/json'
  );
  $postData = array(
      'surveyId' =&gt; $surveyId,
      'format' =&gt; 'csv',
      'useLabels' =&gt; true
  );
  
  $d = curl_init();
  
  curl_setopt_array($d, array(
      CURLOPT_URL =&gt; $url,
      CURLOPT_HTTPHEADER =&gt; $header,
      CURLOPT_RETURNTRANSFER =&gt; TRUE,
      CURLOPT_POSTFIELDS =&gt; json_encode($postData)
  ));
  
  $response = curl_exec($d);
  </code></pre>
  
  <p>And my cURL options in FileMaker looks like this:</p>
  
  <blockquote>
    <p>"--request POST" &amp;
    "--data surveyId=$surveyID &amp; format=csv &amp; useLabels=true" &amp;
    "--header \"X-API-TOKEN: $apiKey\"" &amp;
    "--header \"Content-Type: application/json\""</p>
  </blockquote>
  
  <p>But all I get is a response from that server that says it doesn't understand my call.</p>