PHP CURL Download File
I solved this problem using this:
curl_setopt($ch, CURLOPT_SSLVERSION,3);
This is the final code:
$source = "https://myapps.gia.edu/ReportCheckPortal/downloadReport.do?reportNo=1152872617&weight=1.35";$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $source);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_SSLVERSION,3);$data = curl_exec ($ch);$error = curl_error($ch); curl_close ($ch);$destination = "./files/test.pdf";$file = fopen($destination, "w+");fputs($file, $data);fclose($file);