how to send additional curlopt parameters using curl if this params are taken from textarea or text file
$new_array = explode('|', $_POST['text']);
for ($new_array_c=0; $new_array_c<sizeof($new_array); $new_array_c++)
{
$new_array[$new_array_c] = explode(' = ', $new_array[$new_array_c]);
$new_array_01[$new_array_c] = trim($new_array[$new_array_c][0]);
$new_array_02[$new_array_c] = trim($new_array[$new_array_c][1]);
}
$requests = array_combine($new_array_01, $new_array_02);
this code returns correct array
Array([CURLOPT_HEADER] => true)
but sending curl request returns mistake
Array keys must be CURLOPT constants or equivalent integer values in ...