protected function forgeOptions()
{
$results = array();
foreach ($this->curlOptions as $key => $value) {
$arrayKey = constant('CURLOPT_' . $key);
if (!$this->packageOptions['containsFile'] && $key == 'POSTFIELDS' && is_array($value)) {
$results[$arrayKey] = http_build_query($value, null, '&');
} else {
$results[$arrayKey] = $value;
}
}
return $results;
}