I have a simple PHP script that will either serve a streaming ASF file or not, depending on whether you are logged in and have access to the file. This basically does:
<?php
header('Content-Type: video/x-ms-asf');
header('Content-Disposition: inline; filename="file.asf"');
readfile('file.asf');
?>
This already works fine in Firefox; when you go to this file, it immediately starts streaming video. But Internet Explorer is a completely different story. When I go to this link in IE, it sequentially tries to download the file as if it were an attachment, not a streaming one in the browser. What am I missing, what does IE depend on?
source
share