Jump to content

isfak

New Members
  • Posts

    1
  • Joined

  • Last visited

isfak's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. 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!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.