Hello!
I am trying to download a CSV file with the following curl:
$arrPostData = array( 'task' => 'download', 'selectedFields' => array('1', '2', '3') ); curl_setopt($ch, CURLOPT_URL, $strURL); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($arrPostData)); $strCurlDownload = curl_exec($ch);
This curl unfortunately does not produce anything (nor fails with curl_errno).
Then I modify the $arrPostData array like that:
$arrPostData = array( 'task' => 'download', 'selectedFields' =>'1');
This works, but then I only get field 1 in the output CSV file. How can I modify the curl to be able to get all fields 1,2,3?
Thanks!