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?

this im sure has to do with the server config then b/c its assuming the *.config file is the same as a *.txt file and is just returning it to the broswer..

if your using apache server and have access to the httpd.conf file look for this" DefaultType text/plain " (w/o quotes) it will allow you to define that file type so it will download like a *.zip file would.