I want to user to be able to download a large CSV file as a stream, using curl. Code was working fine with small data. I have not found any information related rolling curl with XML as a post field data. If someone knows better solution to download large CSV file by calling API using curl please tell.
Here is my server code for on streaming download CSV file.
header("Content-type:text/octect-stream");
header("Content-Disposition:attachment;filename=".date('Y-m-d',time())."_search_results.csv");
echo $searchResults_xml_response;
unset($searchResults_xml_response);