
tbone587
User
Mar 13, 2012, 7:20 PM
Post #1 of 4
(615 views)
|
|
Force href to download and not display
|
Can't Post
|
|
I have created a cgi script that gathers info and generates a .conf file at the end. I then have a standard link on the site to download the file. When you click the link it displays the config file within the browser as opposed to downloading it. How do I redirect it so it downloads instead?
a href=\"/filepath/$Host_Name.conf1\">Download configuration</a></td>
|