in reply to File Download

I use the following code to snippet to pour out a RTF file i generate in an app of mine: The user clicks on a link like Download file
print "Content-type: application/rtf\r\n"; print header(-type => 'application/rtf'); print $doc;
Content-type tells the web-server _how_ to send the file while the header(-type ... tells the receiving browser what to do with it. $doc contains the RTF file contents. /t0mas