I need my server to act as a proxy between a 3rd party server (where the file is originally located) and the end user. That is, my server downloads the file from the 3rd party s
$fp = fopen($url, 'rb'); foreach (get_headers($url) as $header) { header($header); } fpassthru($fp); exit;
This will simply download a remote file to the browser with correct headers.