title: What is the curl_setopt equivalent of exec('curl -k ...')
body: <p>I am trying duplicate the functionality of this command: </p>
  
  <pre><code>exec('curl -k -d "pameters=here" https://apiurlhere.com', $output);
  </code></pre>
  
  <p>with curl_exec():</p>
  
  <pre><code>$url =  'https://apiurlhere.com?parameters=here';
  $ci = curl_init();
  curl_setopt($ci, CURLOPT_POST, TRUE);
  curl_setopt($ci, CURLOPT_SSL_VERIFYPEER, FALSE);
  curl_setopt($ci, CURLOPT_URL, $url);
  $response = curl_exec($ci);
  curl_close ($ci);
  print_r($response);
  </code></pre>
  
  <p>I have been trying the different options found in the docs (http://php.net/manual/en/function.curl-setopt.php), and thought it was CURLOPT_SSL_VERIFYPEER, but it still failed (response comes back empty).</p>
  
  <p>The URL i'm posting to uses SNI which is causing cURL to fail when the SSL cert returns a different host name than it's expecting.</p>
  
  <p>Is there a curl_setopt equivalent to -k?</p>