Setting content-length on an exe download
Posted: Mon Jan 04, 2010 9:37 am
I'm trying to create a web page which allows users to download a Windows EXE file.
My first attempt was to include this simple hyperlink in the page:
This works OK, sort of...
The web server (an IIS server over which I have no control beyond what PHP gives me), does not include a Content-length header in the file transfer, which means that the browser does not no how long the download will be.
Can I somehow use PHP (or some other technique) to force the inclusion of a Content-length on the EXE file transfer? Or is there, perhaps, a more correct way to do what I want?
--
Claus
My first attempt was to include this simple hyperlink in the page:
Code: Select all
<a href="xyzzy.exe">download</a>The web server (an IIS server over which I have no control beyond what PHP gives me), does not include a Content-length header in the file transfer, which means that the browser does not no how long the download will be.
Can I somehow use PHP (or some other technique) to force the inclusion of a Content-length on the EXE file transfer? Or is there, perhaps, a more correct way to do what I want?
--
Claus