Can I call curl_setopt with CURLOPT_HTTPHEADER multiple times to set multiple headers?
$url = 'http://www.example.com/'; $curlHandle = curl_init($url); curl_setopt($curlHandle, CURLOPT_HTTPHEADER, array('Content-type: application/xml')); curl_setopt($curlHandle, CURLOPT_HTTPHEADER, array('Authorization: gfhjui')); $execResult = curl_exec($curlHandle);