* 'novalidate' => do not validate SSL certs, default is to validate using our CA list
* 'nobody' => only return the header
* 'cookiejar' => path to cookie jar file
+ * 'header' => header array
*
* @return CurlResult
*/
);
}
+ if (!empty($opts['header'])) {
+ curl_setopt($ch, CURLOPT_HTTPHEADER, $opts['header']);
+ }
+
@curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
@curl_setopt($ch, CURLOPT_USERAGENT, $a->getUserAgent());