March 25th, 2009, 08:08 PM
Hyperlink to Exe file
I have created a HTML page, which has a link to an exe file.
The code is very small and normal as below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<a href="setup.exe" target="_self">Please click to download</a>
As you can see that there's a hyperlink to a setup.exe file located in the same folder as the html file. But, when i click on this link, i get an error "Page cannot be found" with the following details:
"HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)"
I am using IIS 6.0 on windows server 2003, after googling I found out that there's some problem because of the MIME types and added the "EXE" Mime type with "application\octet-stream" to the folder containing the exe file (the root folder in my case), as mentioned here "http://support.microsoft.com/default.aspx?scid=kb;en-us;326965"
But, even after doing this, I am still not able to download the exe file using the hyperlink.
Can you please tell me, what I am doing wrong, or if I have missed anything? or what could be done to allow downloading the exe file from the link!
Last edited by codenamevirus; March 25th, 2009 at 08:09 PM.
Reason: more information added
By xierox in forum Other Tutorials Forum
Last Post: March 5th, 2005, 04:34 AM
By gore in forum Operating Systems
Last Post: March 7th, 2004, 07:02 AM
By -DaRK-RaiDeR- in forum Newbie Security Questions
Last Post: December 14th, 2002, 07:38 PM
By rcgreen in forum The Security Tutorials Forum
Last Post: October 4th, 2002, 05:07 AM